1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00
Commit graph

63 commits

Author SHA1 Message Date
38f885f0df api/client.go: refactor decoding in handler functions to a helper function 2024-02-04 15:54:10 +01:00
728b03422f api/redis/subscriber.go: adding some comments. 2024-02-04 15:53:24 +01:00
35a9706954 api/client.go: in Subscribe() handle nil handler correctly. 2024-02-04 15:53:24 +01:00
bcd4a93c46 api/client_test.go: add test for calling Subscribe with nil handler. 2024-02-04 14:30:59 +01:00
e7ad37c38a api/client.go: add handler for table delta 2024-02-04 11:32:28 +01:00
9143c1e06b api/message/msgpack/codec_test.go: adding test for table delta messages. 2024-02-03 14:06:47 +01:00
bd742e678a api/message/json/codec_test.go: add tests for table delta messages. 2024-02-03 13:40:25 +01:00
0d8ecaea36 api/client.go: some comments. 2024-02-03 13:39:25 +01:00
e69ff9781f api: update dependancies 2024-02-02 17:05:29 +01:00
0b3b383977 Merge branch 'table-deltas' 2024-01-21 14:01:08 +01:00
b3961f4eec api/message/types.go: Update TableDeltaRow 2024-01-21 13:56:18 +01:00
dc6dd6ae70 api/message/types.go: Adding TableDelta and TableDeltaRow structs 2024-01-21 13:56:18 +01:00
5b5b28669a api/message/types.go: Adding RollbackMessage struct 2024-01-09 15:49:20 +01:00
8321c1633a api/channel.go: Adding rollback channel. 2024-01-07 19:25:57 +01:00
8dbf411b36 api/channel.go: adding TableDelta channel 2024-01-07 19:11:55 +01:00
dc3e59ad23 api/message/json/codec.go: minor fix. 2024-01-07 14:33:46 +01:00
8ffd86daac api/message: for codec implementations, define a function instead of global variables. 2024-01-07 14:32:00 +01:00
24bf44a175 move writer interface and redis publish from api module as these are for the server side. 2023-11-25 15:14:21 +01:00
d6d9fa5ca0 api/go.mod: require at least go 1.20 2023-10-22 20:37:23 +02:00
cfc6cb9e42 api/client_test.go: test segfaults sometimes because of nil pointers. so setup mock structs and functions. 2023-06-05 17:53:03 +02:00
fd5ecf4268 Merge remote-tracking branch 'origin/21-add-actiontracereceipt' 2023-06-05 17:25:04 +02:00
a91df0c39e Upgrade from redis v8 to v9 2023-06-05 16:55:15 +02:00
c2d60a1240 api/redis/publisher.go: pass context as first parameter to NewPublisher() 2023-06-05 13:24:14 +02:00
f9124c2864 api/redis/subscriber.go: Adding context as first parameter to NewSubscriber() 2023-06-05 13:21:57 +02:00
9d2b621b27 api/message/msgpack/codec_test.go: Test ActionReceipt. 2023-05-26 15:11:59 +02:00
e2962c719b api/message/json/codec_test.go: Test ActionReceipt. 2023-05-26 15:11:39 +02:00
7041f4328c api/message/types.go: Adding ActionReceipt type 2023-05-26 15:11:06 +02:00
c34603325e api/message/msgpack/codec_test.go: remove outcommented code. 2023-05-26 15:08:41 +02:00
8154bee1c2 api/client.go: implement Client.Subscribe correctly by returning a error on unsupported channel type. 2023-05-26 14:10:01 +02:00
9e586d879d api/channel.go: Adding Channel.Type() 2023-05-26 14:09:07 +02:00
47dda7a3f4 api/message/msgpack/codec_test.go: Adding test for TransactionTrace 2023-05-25 18:47:08 +02:00
3bf62d431a api/message/msgpack/codec_test.go: minor fix. 2023-05-25 18:22:07 +02:00
ebadf4d833 api/message/json/codec_test.go: Test TransactionTrace 2023-05-25 18:20:58 +02:00
867f601bc5 api/message/types.go: adding TransactionTrace 2023-05-25 18:18:30 +02:00
3dfb53b5fa Adding api/client.go 2023-05-16 16:52:14 +02:00
f925692354 api/message/types.go: Change ActionTrace.Data from []byte to interface{} 2023-05-09 16:46:12 +02:00
df840da128 api/message/json/codec.go: alias json_codec.Marshal/Unmarshal as encoder/decoder. so that implementation can change and tests uses the correct functions automatically. 2023-05-09 15:05:03 +02:00
12d2837218 api/message/json/codec.go: switch from github.com/liamylian/jsontime to github.com/eosswedenorg-go/jsontime 2023-05-09 14:58:58 +02:00
af6d72946f api/go.mod: wwitch github.com/shamaton/msgpack/v2 to github.com/ugorji/go/codec 2023-05-09 13:13:03 +02:00
ba05d3d7de api/message/types.go: remove ActionTrace.HexData 2023-05-08 17:07:01 +02:00
213daa1e46 api/message/json/codec.go: fix timestamps, skip "Z" (always UTC) and use 3 decimals for milliseconds. 2023-05-05 09:20:35 +02:00
1a75286240 Adding api/message/json/codec_test.go 2023-05-05 09:16:29 +02:00
ae6f3f11a9 api/message/types.go: Adding Blocknum and Timestamp to ActionTrace struct 2023-05-05 07:29:37 +02:00
df51060fcc api/message/msgpack/codec_test.go: test for new fields in ActionTrace 2023-05-03 13:28:13 +02:00
668b3b62d8 api/message/types.go: Adding Except,Error and Return fields to ActionTrace 2023-05-03 13:28:13 +02:00
c8944ea18b api/message/types.go: Adding Authorization field to ActionTrace 2023-04-26 15:00:25 +02:00
5fc83635be api/channel.go: change transaction channel from "transaction" to "transactions" 2023-04-26 14:30:31 +02:00
bd84a1c019 Generate new api/message/msgpack/msgpack.go 2023-04-26 11:42:34 +02:00
0e60e604bb api/message/msgpack/codec.go: fix go:generate command 2023-04-26 11:41:29 +02:00
0650845a0c api/message/types.go: Change ActionTrace.Data to a byte slice and provide GetData() function that unmarshalls.
Only the client code should care about the content. So just transmit it as
a byte slice containing json data.
2023-04-26 11:39:58 +02:00