457e0e4eeb
cmd/thalos/server.go: define and use ReadConfig() that utilizes Config.ReadFile and Config.ReadCliFlags() methods
2024-02-12 15:14:21 +01:00
a36c3f7853
cmd/thalos/server.go: wrap errors returned to main (to give more context)
2024-02-12 14:55:02 +01:00
e5e15a7645
app/config/config.go: rework api.
2024-02-11 14:29:01 +01:00
655dd730d7
switch github.com/pborman/getopt to github.com/urfave/cli for handling cli flags
2024-02-10 18:52:50 +01:00
729860cf76
cmd/tools/validate.go: log errors from client.
2024-02-07 17:32:03 +01:00
133af980a3
api/client.go: Rework to use a channel instead of callback.
2024-02-04 22:49:49 +01:00
cb14978118
cmd/tools/mock_publisher.go: add log message before starting.
2024-02-02 16:52:50 +01:00
e93cc1d139
tools: rename redis prefix flag to just prefix.
2024-02-02 16:52:31 +01:00
1f3e4a0fd9
cmd/tools/redis-acl.go: Make timestamp used as the random seed have nanoseconds precision.
2024-01-15 22:30:43 +01:00
ebeef44c31
cmd/tools/redis-acl.go: should not call rand.Seed(), instead create a new rand.Rand object.
2024-01-15 22:29:27 +01:00
578f9e83d7
cmd/tools/mock_publisher.go: fix correct imports.
2023-12-17 19:37:08 +01:00
41ab39d4a3
cmd/thalos/main.go: pass context to cache.
2023-12-17 17:58:42 +01:00
22e98f1c37
Merge branch 'cache'
...
# Conflicts:
# app/abi/manager.go
# app/ship_processor.go
# cmd/thalos/main.go
2023-12-06 15:38:34 +01:00
7b1b500b22
cmd/thalos/main.go: have running variable be set to true on initialization.
...
No point setting it in readerLoop() as its only used to exit the application, as soon as its set to false. the application should exit as soon as possible.
2023-12-06 15:30:09 +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
7ee70c00d7
cmd/thalos/main.go: fix help text for version flag.
2023-11-04 13:34:00 +01:00
1daf38bd3d
cmd/thalos/main.go: adding "-n" flag to force current block from config/api.
2023-11-04 13:32:32 +01:00
fa48a79610
cmd/thalos/main.go: adding stateLoader and stateSaver functions for passing to processor.
2023-11-04 13:27:44 +01:00
2acae14ff8
cmd/thalos/main.go: use new cache struct and abi manager.
2023-11-01 21:30:42 +01:00
809f42f5af
Adding cmd/tools/mock_publisher.go
2023-10-22 20:32:25 +02:00
b364ce56d8
cmd/thalos/main.go: Add "level" cli flag to make it possible for user to specify log level.
2023-08-30 16:06:57 +02:00
16ab7d1fcf
cmd/thalos/main.go: Fix some log lines to use structured logging.
2023-08-30 15:52:57 +02:00
0f5c94f8de
Adding cmd/tools/redis-acl.go
2023-08-23 11:23:58 +02:00
1ba1422c6f
cmd/tools/bench.go: Support Redis username and password flags.
2023-08-22 16:24:43 +02:00
9f61bbd316
cmd/tools/flags.go: adding Redis User and Password flags.
2023-08-22 16:24:09 +02:00
6c61382f4c
cmd/thalos/main.go: in readerLoop() make sure we set shClient.StartBlock to processor's current block when (re)connecting.
2023-08-21 14:12:07 +02:00
e1dc5f85a0
cmd/thalos/main.go: Make telegram notifications optional
2023-07-18 10:21:14 +02:00
129272d32e
cmd/thalos/main.go: pass chain id instead of prefix as id to AbiManager
2023-07-13 07:09:09 +02:00
500cddc082
app/config/config.go: Adding User field to RedisConfig
2023-07-13 06:57:41 +02:00
8ab7d852a7
cmd/tools/validate.go: Fix usage string.
2023-06-28 15:54:52 +02:00
e3f46d4a84
cmd/tools/flags.go: move common flags into it's own file.
2023-06-28 15:25:29 +02:00
c7246ead03
cmd/tools: change from github.com/spf13/cobra to github.com/urfave/cli/v2 as cli library.
2023-06-28 15:24:06 +02:00
fb54dd9960
cmd/thalos/main.go: exit the program correctly if we get shipclient.ErrEndBlockReached
2023-06-26 16:24:00 +02:00
1ccb5ff87f
cmd/tools/main.go: use app/log package instead of initialize log here.
2023-06-15 11:39:35 +02:00
5834e60633
cmd/thalos/main.go: move log init function to app/log/init.go
2023-06-15 11:38:58 +02:00
22fd3f6980
Adding cmd/tools/validate.go
2023-06-15 11:30:01 +02:00
5c6ab2e846
cmd/tools/main.go: fix log time format.
2023-06-15 11:29:42 +02:00
52488277cb
create thalos-tools cli app and have the old bench command as a subcommand.
2023-06-14 11:29:54 +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
c1efffd4ba
Adding cmd/bench/main.go
2023-06-05 12:52:42 +02:00
93e765f14c
cmd/thalos/main.go: Implement log splitting if file logging is enabled.
2023-05-17 10:52:12 +02:00
2335dbc211
Merge pull request #17 from eosswedenorg/15-support-chain-names
...
support chain names
2023-05-15 15:33:08 +02:00
ac57e82992
cmd/thalos/main.go: use conf.Ship.Chain if set as namespace. otherwise default to chain id from api.
2023-05-15 15:29:31 +02:00
5f9a54c0d8
cmd/thalos/main.go: implement exponential backoff algorithm in reconnect logic
2023-05-15 15:17:20 +02:00
1193e57e33
cmd/thalos/main.go: Adding VersionString variable
2023-05-13 13:27:50 +02:00
ed4cc9d1e6
Rename cmd/main/main.go to cmd/thalos/main.go
2023-05-13 13:21:42 +02:00
22404dcb8b
cmd/main/main.go: sort import statements.
2023-05-03 13:19:49 +02:00
6729985002
cmd/main/main.go: implement logrotation.
2023-05-03 13:17:40 +02:00