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

456 commits

Author SHA1 Message Date
1799fe4ebf README.md: update build command 2024-02-18 20:00:24 +01:00
6cc26c269c .github/workflows/release.yml: update actions 2024-02-18 19:59:12 +01:00
53c7053177 .github/workflows/test.yml: update actions 2024-02-18 19:57:03 +01:00
432dfab410 cmd/thalos/server.go: only fetch chain info from api once (or zero for code paths that does not need it). 2024-02-18 18:39:55 +01:00
368d3f36bf cmd/thalos/server.go: remove debug call to Println() 2024-02-18 18:10:46 +01:00
85da219349 Merge branch 'refactor' 2024-02-17 17:32:19 +01:00
33efb36901 Remove app/config/yaml.go as we use viper and mapstructure to parse. 2024-02-17 16:43:57 +01:00
a0b88d1991 app/config/file.go: define Read() that uses viper to read the config. 2024-02-17 16:43:36 +01:00
dbaa520160 app/config/config.go: adding decodeShorhandShipConfig() for mapstructure decoding. 2024-02-17 16:42:39 +01:00
b517943fee app/log/config.go: add mapstructure tags 2024-02-17 16:31:14 +01:00
106e88f2f4 app/config/config.go: add mapstructure tags. 2024-02-17 16:30:54 +01:00
d43ef7f7ff app/types/size.go: Add UnmarshalText 2024-02-17 15:17:12 +01:00
59480533d3 refactor cli to use cobra. 2024-02-17 14:34:27 +01:00
fad70e19b9 app/config/config_test.go: fix parameter order to require.Equal() 2024-02-17 14:33:30 +01:00
b853bc026e cmd/thalos/server.go: remove global variables. 2024-02-14 21:03:37 +01:00
7108299550 cmd/thalos/main.go: minor cleanup in VersionPrinter 2024-02-14 13:01:34 +01:00
9974bfe3fd rename app folder to internal. 2024-02-14 13:00:33 +01:00
afb90af1db cmd/thalos/server.go: in run() set running flag to false before calling shClient.Shutdown() so readerLoop() exists correctly. 2024-02-13 23:14:47 +01:00
775760ec32 cmd/thalos/server.go: get rid of exit channel. its sufficient to just use running flag. 2024-02-13 23:13:51 +01:00
e723e81786 go mod: update dependancies 2024-02-13 22:20:23 +01:00
84d9df9246 Merge branch 'cli' 2024-02-12 17:59:25 +01:00
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
4a5cff20cd app/config: Adding description to methods. 2024-02-12 15:13:09 +01:00
49faaf5325 Adding app/config/cli.go 2024-02-12 15:09:17 +01:00
57cc55b601 app/config/config.go: refactor yaml and file methods into their own files. 2024-02-12 15:08:19 +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
f99bbec5ff Version 1.0.0 2024-02-07 19:32:24 +01:00
f08b6a3e45 debian/control: update email. 2024-02-07 19:31:13 +01:00
d862788b8d Add api/README.md 2024-02-07 17:56:19 +01:00
729860cf76 cmd/tools/validate.go: log errors from client. 2024-02-07 17:32:03 +01:00
7feee11fad api/client.go: Don't report io.EOF as an error. 2024-02-07 17:31:19 +01:00
daa89cf372 api/reader.go: Document io.EOF 2024-02-07 17:30:19 +01:00
d789b6a294 api/redis/subscriber.go: in worker() no need to spawn a goroutine when sending to the channel. 2024-02-07 17:29:54 +01:00
b854c1dfa7 api/redis/subscriber.go: in Read() return io.EOF if redis connection is closed or channel returns a empty byte slice. 2024-02-07 17:27:24 +01:00
816d405d31 api/client.go: make Subscribe support a list of channels as argument. 2024-02-04 22:49:49 +01:00
133af980a3 api/client.go: Rework to use a channel instead of callback. 2024-02-04 22:49:49 +01:00
a4954ab949 api/client_test.go: Adding test for reading rollback messages.
Because these don't happen that often on a real ship node. Test as much as possible with unit tests.
2024-02-04 16:56:59 +01:00
9d79bb8315 api/client.go: add rollback callback 2024-02-04 16:55:21 +01:00
021c71f50b api/client.go: add Transaction callback. 2024-02-04 16:05:01 +01:00
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