|
|
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 |
|
|
|
eec834a338
|
main.go: setup redis pubsub publisher.
|
2023-01-13 13:32:23 +01:00 |
|
|
|
45bf043d8a
|
Adding transport/redis_pubsub publisher
|
2023-01-13 13:31:05 +01:00 |
|
|
|
6b6a375228
|
Adding transport/publisher.go
|
2023-01-13 13:30:11 +01:00 |
|
|
|
3251c94416
|
move internal/config to config
|
2023-01-12 16:49:27 +01:00 |
|
|
|
92c605c7fa
|
move internal/abi_cache to abi
|
2023-01-12 16:48:04 +01:00 |
|
|
|
c05b789269
|
move abi.go to abi/manager.go
|
2023-01-12 16:46:09 +01:00 |
|
|
|
45d1a468e8
|
abi.go: Get rid of global state by defining an AbiManager struct.
|
2023-01-12 16:44:20 +01:00 |
|
|
|
0ded3ee6fe
|
abi.go: move DecodeAction to ship_processor.
|
2023-01-12 16:33:06 +01:00 |
|
|
|
9c3bd1e879
|
internal/abi_cache/cache.go: change "this" variable to "cache".
|
2023-01-12 16:31:51 +01:00 |
|
|
|
caf7460875
|
internal/redis/channel.go: Don't need to use fmt.Sprintf() anymore.
|
2023-01-12 15:37:29 +01:00 |
|
|
|
51af80d3aa
|
internal/redis/channel.go: Make Append() accept a variadic number of parameters.
|
2023-01-12 15:37:29 +01:00 |
|
|
|
0e19f6d146
|
internal/redis/channel.go: Change delimiter to "/"
|
2023-01-12 15:37:29 +01:00 |
|
|
|
dd9bd85801
|
internal/redis/namespace.go: Change delimiter to "::"
|
2023-01-12 15:37:14 +01:00 |
|
|
|
fb3ed0f976
|
Makefile: add test target.
|
2023-01-06 17:18:25 +01:00 |
|
|
|
83a4c9f70f
|
ship_processor.go: encodeQueue should accept and redis.ChannelInterface instead of redis.Channel to make it more generic.
|
2023-01-06 17:17:01 +01:00 |
|
|
|
723b0786cb
|
ship_processor.go: make queueMessage() accept an redis.ChannelInterface instead of redis.Key so we can call redisNs.NewKey() as late as possible.
|
2023-01-06 17:15:31 +01:00 |
|
|
|
93300f01ea
|
ship_processor.go: in processTraces() make a slice of redis.ChannelInterface instead of redis.Key so we don't have to repeat our self.
|
2023-01-06 17:12:55 +01:00 |
|
|
|
4b41718c78
|
ship_processor.go: Use redis.Namespace.NewKey()
|
2023-01-06 17:09:41 +01:00 |
|
|
|
1bc43cc87b
|
internal/redis/namespace.go: Adding Namespace.NewKey() helper function.
|
2023-01-06 17:07:22 +01:00 |
|
|
|
13c8ed7692
|
Refactor to use the new redis.Key,redis.Namespace and redis.Channel types.
|
2023-01-06 17:06:27 +01:00 |
|
|
|
61beca435c
|
Adding internal/redis/key.go
|
2023-01-06 17:05:44 +01:00 |
|
|
|
15b9a9804f
|
Adding internal/redis/namespace.go
|
2023-01-06 16:55:36 +01:00 |
|
|
|
e91951d7ed
|
Adding internal/redis/channel.go
|
2023-01-06 16:53:04 +01:00 |
|
|
|
177b715ba4
|
ship_processor.go: typo fix. hearthbeat should be heartbeat.
|
2023-01-06 16:39:14 +01:00 |
|
|
|
73f0ba0555
|
ship_processor.go: improve channel names for actions.
|
2023-01-06 15:39:13 +01:00 |
|
|
|
42da179c74
|
internal/redis/wrapper.go: in Key() used "::" as a separator between namespace and channel.
|
2023-01-06 15:38:21 +01:00 |
|