1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00
Commit graph

149 commits

Author SHA1 Message Date
f174863a17 transport/redis_pubsub/subscriber.go: implement Close() 2023-03-29 11:57:51 +02:00
834adb6ca8 cmd/main/main.go: close processor when application is done. 2023-03-29 11:55:42 +02:00
0034225e7a move main.go to cmd/main/main.go 2023-03-29 11:55:13 +02:00
1f09993925 app/ship_processor.go: Add Close() method that closes the writer. 2023-03-29 11:53:11 +02:00
c225505143 transport/writer.go: Add Close() method. 2023-03-29 11:52:31 +02:00
1de6cd9432 transport/redis_pubsub/publisher.go: Adding Close() method. 2023-03-29 11:51:15 +02:00
6a5292da5e app/ship_processor.go: Return ShipProcessor object from SpawnProcessor() 2023-03-29 11:50:14 +02:00
bbda49ab90 transport/reader.go: document concurrency requirement of Read() 2023-03-29 11:38:54 +02:00
531a2d3d17 Move Key and Namespace from transport/redis_pubsub to transport/redis_common 2023-03-08 16:28:52 +01:00
acdf827223 config/config.go: use shipclient.NULL_BLOCK_NUMBER instead of defining our own. 2023-03-08 15:56:45 +01:00
bd5037b044 Adding transport/redis_pubsub/subscriber.go 2023-03-08 11:32:37 +01:00
7843dda6d9 app/ship_processor.go: Support ActionTraceV1 2023-03-08 10:49:55 +01:00
454c8f7197 Adding config/config_test.go 2023-03-08 10:04:50 +01:00
bc5a351853 config/config.go: Refactor Load() into Parse() and Load() functions. 2023-03-08 10:04:12 +01:00
edaf662d50 transport/redis_pubsub/publisher_test.go: Change Publish to Write in test name. 2023-03-08 10:01:56 +01:00
347de718af transport/channel.go: rename Action.Action to Action.Name 2023-03-07 18:53:52 +01:00
7637b6e16b transport/message/types.go: Rename Action field to Name in ActionTrace struct 2023-03-07 18:47:58 +01:00
68c21c8ed8 transport/channel.go: Rewrite to not use a interface. Action struct has a Channel() method that returns a channel instead. 2023-03-07 18:35:58 +01:00
8e99146cc2 transport/channel.go: Adding Channel.Is() 2023-03-07 11:58:40 +01:00
7358bebc76 main.go: Minor fix. 2023-03-07 11:55:02 +01:00
f9fc88b0fb transport/publisher.go: rename to writer.go 2023-03-07 11:41:22 +01:00
b3f773655d Adding transport/reader.go 2023-03-07 11:35:13 +01:00
19b93495ee transport/redis_pubsub/redis.go rename to publisher.go 2023-03-07 11:33:53 +01:00
b46c070948 transport/message/encoding.go: make Decoder type match common Unmarshal interface. 2023-02-21 10:56:36 +01:00
6ca9f408f9 app/ship_processor.go: in encodeQueue() should check for err == nil, not err != nil. 2023-02-21 10:45:17 +01:00
315d7e19c9 transport/message/encoding.go: Add Decoder and Codec 2023-02-10 16:54:57 +01:00
027ba0b1ff transport/message/encoder.go: rename to encoding.go 2023-02-10 16:54:08 +01:00
a20295ee88 transport/message/encoder.go: remove Encode() function. 2023-02-10 16:50:59 +01:00
55f013a386 app/ship_processor.go: Use an message.Encoder function instead of directly calling massage.Encode() 2023-02-10 16:48:16 +01:00
2c3af6e4c5 transport/message/encoder.go: Define the Encoder type 2023-02-10 16:43:23 +01:00
38ae3a4630 transport/redis_pubsub/redis.go: No need to alias redis import. 2023-02-10 16:32:56 +01:00
82dce9b190 Update github.com/eosswedenorg-go/antelope-ship-client to v0.2.2 2023-02-10 16:05:43 +01:00
788cc2621e main.go: os.Interrupt can be changed to syscall.SIGINT 2023-01-20 12:15:24 +01:00
1d6c05b402 main.go: modify signal handling to also check syscall.SIGTERM 2023-01-20 12:14:54 +01:00
c6a2c49f9a main.go: simplify go routines and signal handling. 2023-01-20 12:02:32 +01:00
af0a4d2714 transport: move key and namespace into redis_pubsub as it is redis specific. 2023-01-19 19:07:35 +01:00
e0bf53496a transport/message/types.go: get rid of eos-go here. 2023-01-19 19:04:34 +01:00
2bec1f09c5 app/ship_processor.go: remove ns from struct. should not be used here. 2023-01-19 17:47:13 +01:00
69a9e9f47d transport/publisher.go: pass ChannelInterface instead of string to Publish() 2023-01-19 17:42:26 +01:00
5202247200 move app/types.go to transport/message/types.go 2023-01-19 16:28:54 +01:00
0027a80af0 Move ship_processor.go and types.go into app package. 2023-01-19 14:07:54 +01:00
a9c512d0b0 ship_processor.go: rename struct to ShipProcessor 2023-01-17 21:44:56 +01:00
5c5d7e57a9 ship_processor.go: move encodeMessage to transport/message/encoding.go 2023-01-17 21:03:48 +01:00
f589f5c0ed ship_processor.go: Move decodeAction() to abi/helpers.go 2023-01-17 21:01:09 +01:00
2d369adabf ship_processor.go: refactor to a struct to get rid of global state. 2023-01-17 20:57:09 +01:00
30e3d0e012 main.go: Remove some global variables that does not need to be global. 2023-01-17 19:24:19 +01:00
d825f3bc50 abi/cache_test.go: use redismock. 2023-01-13 14:39:07 +01:00
bcf55f1c12 Remove internal/redis/wrapper.go 2023-01-13 13:45:41 +01:00
b22118898d move channel stuffs from internal/redis to transport. 2023-01-13 13:38:04 +01:00
d0782c3c7c ship_processor.go: Use publisher instead of redis directly. 2023-01-13 13:36:09 +01:00