You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pkg/config/config.go
+7
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,23 @@ const Prefix = "honu"
18
18
// values that are omitted. The Config should be validated in preparation for running
19
19
// the honudb instance to ensure that all server operations work as expected.
20
20
typeConfigstruct {
21
+
PIDuint32`required:"true" desc:"the unique process id for this replica"`
21
22
Maintenancebool`default:"false" desc:"if true, the replica will start in maintenance mode"`
22
23
LogLevel logger.LevelDecoder`split_words:"true" default:"info" desc:"specify the verbosity of logging (trace, debug, info, warn, error, fatal panic)"`
23
24
ConsoleLogbool`split_words:"true" default:"false" desc:"if true logs colorized human readable output instead of json"`
24
25
BindAddrstring`split_words:"true" default:":3264" desc:"the ip address and port to bind the honu database server on"`
25
26
ReadTimeout time.Duration`split_words:"true" default:"20s" desc:"amount of time allowed to read request headers before server decides the request is too slow"`
26
27
WriteTimeout time.Duration`split_words:"true" default:"20s" desc:"maximum amount of time before timing out a write to a response"`
27
28
IdleTimeout time.Duration`split_words:"true" default:"10m" desc:"maximum amount of time to wait for the next request while keep alives are enabled"`
29
+
StoreStoreConfig
28
30
processedbool
29
31
}
30
32
33
+
typeStoreConfigstruct {
34
+
ReadOnlybool`default:"false" split_words:"false" desc:"open the the underlying data store in read-only mode"`
35
+
DataPathstring`required:"true" split_words:"true" desc:"path to directory where data is stored (created if it doesn't exist)"`
0 commit comments