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

484 commits

Author SHA1 Message Date
90b10f39ae internal/log/RotatingFile.go: use option functions. 2024-02-21 17:22:06 +01:00
bcdaa9cea4 internal/log/RotatingFileOptions.go: adding implementation for the functional option pattern. 2024-02-20 19:43:27 +01:00
cd54b770a5 internal/log/config.go: adding FileTimestampFormat field 2024-02-20 19:28:06 +01:00
e046484d9b Version 1.1.0-rc1 2024-02-19 15:10:05 +01:00
a2a9e106a3 .github/workflows/release.yml: use make to build debian package 2024-02-19 15:07:17 +01:00
39135ab781 makefile: adding build-deb target. 2024-02-19 15:02:18 +01:00
de7c1b160c debian/thalos.postinst: indent fix 2024-02-19 13:48:16 +01:00
bc46e516d9 cmd/thalos/server.go: prefix ship connection logs with "ship client" and cleanup the messages abit. 2024-02-18 20:35:23 +01:00
3cb25a5717 cmd/thalos/server.go: Don't log error if we get a (normal) close message from ship. 2024-02-18 20:28:02 +01:00
9dcb8c4f0c cmd/thalos/server.go: move redis connect code to it's own function and log connection attempt. 2024-02-18 20:23:00 +01:00
1658b3ea99 cmd/thalos/server.go: parse config before doing anything else. 2024-02-18 20:07:35 +01:00
fb62e10667 cmd/thalos/server.go: Set context timeout to eos api call. 2024-02-18 20:06:51 +01:00
2382f72e5a Merge branch '32-request-for-more-startup-flags' 2024-02-18 20:03:54 +01:00
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
fb3b35cbe9 cmd/thalos/server.go: in stateLoader(): set "cli" as source if start block is set via cli flag. 2024-02-18 18:09:57 +01:00
146ea99298 cmd/thalos/server.go: in GetConfig() should override "no-state-cache" flag if "start-block" flag is set. 2024-02-18 18:04:04 +01:00
7f1f186aa0 nternal/config/cli.go: move overrideCliFlags() to cmd/thalos/server.go as its pretty specific code. 2024-02-18 18:00:26 +01:00
53baae8a7f internal/config/cli.go: move flags that are not bound to config to cmd/thalos/main.go 2024-02-18 17:40:04 +01:00
69a36e016c internal/config: skip creating a Config struct with default values. those should be set by flags or viper in the builder 2024-02-18 16:11:32 +01:00
e54a4fa929 internal/config: remove shorthand ship config (where it is possible to have "ship" key only contain a url string instead of struct)
It makes parsing harder and i don't think anyone uses it and its not that useful tbh.
2024-02-18 16:08:18 +01:00
4a4489e2be internal/config/builder_test.go: adding test for config with flags 2024-02-18 16:04:02 +01:00
2db0a64bd4 internal/config: add additional flags for config fields. 2024-02-18 15:45:10 +01:00
beb5b6cf04 cmd/thalos/main.go: move cli flags to internal/config/cli.go as it is easier to write tests if we can get a hold of the flags. 2024-02-18 14:36:27 +01:00
117f1b50b4 internal/config/builder.go: bind start-block, end-block flags to config 2024-02-18 11:39:32 +01:00
cb207b2f33 cmd/thalos/main.go: Add start-block and end-block flags. 2024-02-18 11:39:32 +01:00
7033240000 internal/config/cli.go: Rename Config.ReadCliFlags to ovverideCliFlags and make it a function instead of method. 2024-02-18 11:39:32 +01:00
b4c305d8ea Remove internal/config/file.go 2024-02-18 11:39:32 +01:00
cad74a4d84 cmd/thalos/server.go: use the new config.Builder 2024-02-18 11:39:32 +01:00
0d1bec6a62 Adding internal/config/builder.go 2024-02-18 11:39:32 +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