Documentation ¶
Index ¶
Constants ¶
const ( // Flag names FlagUnixSocketAddress = "unix-socket-address" FlagPanicOnDaemonFailureEnabled = "panic-on-daemon-failure-enabled" FlagMaxDaemonUnhealthySeconds = "max-daemon-unhealthy-seconds" FlagPriceDaemonEnabled = "price-daemon-enabled" FlagPriceDaemonLoopDelayMs = "price-daemon-loop-delay-ms" FlagReporterDaemonEnabled = "reporter-daemon-enabled" FlagKeyringBackend = "keyring-backend" )
List of CLI flags for Server and Client.
Variables ¶
This section is empty.
Functions ¶
func AddDaemonFlagsToCmd ¶
AddDaemonFlagsToCmd adds the required flags to instantiate a server and client for price updates. These flags should be applied to the `start` command LAYER Cosmos application. E.g. `layerd start --price-daemon-enabled=true --unix-socket-address $(unix_socket_address)`
Types ¶
type DaemonFlags ¶
type DaemonFlags struct { Price PriceFlags Reporter ReporterFlags }
DaemonFlags contains the collected configuration flags for all daemons.
func GetDaemonFlagValuesFromOptions ¶
func GetDaemonFlagValuesFromOptions( appOpts servertypes.AppOptions, ) DaemonFlags
GetDaemonFlagValuesFromOptions gets all daemon flag values from the `AppOptions` struct.
func GetDefaultDaemonFlags ¶
func GetDefaultDaemonFlags() DaemonFlags
GetDefaultDaemonFlags returns the default values for the Daemon Flags using a singleton pattern.
type PriceFlags ¶
type PriceFlags struct { // Enabled toggles the price daemon on or off. Enabled bool // LoopDelayMs configures the update frequency of the price daemon. LoopDelayMs uint32 }
PriceFlags contains configuration flags for the Price Daemon.
type ReporterFlags ¶
type ReporterFlags struct { // Enabled toggles the reporter daemon on or off. Enabled bool AccountName string }
ReporterFlags contains configuration flags for the Reporter Daemon.
type SharedFlags ¶
type SharedFlags struct { string PanicOnDaemonFailureEnabled bool MaxDaemonUnhealthySeconds uint32 }SocketAddress
Shared flags contains configuration flags shared by all daemons.