Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { RPCEndpoint string `json:"rpc_endpoint" envconfig:"RPC_ENDPOINT"` RPCTimeout string `json:"rpc_timeout" envconfig:"RPC_TIMEOUT" default:"30s"` DatabaseDSN string `json:"database_dsn" envconfig:"DATABASE_DSN"` ServerAddr string `json:"server_addr" envconfig:"SERVER_ADDR" default:"0.0.0.0"` ServerPort uint16 `json:"server_port" envconfig:"SERVER_PORT" default:"8080"` InitialHeight int64 `json:"initial_height" envconfig:"INITIAL_HEIGHT"` BatchSize int64 `json:"batch_size" envconfig:"BATCH_SIZE"` Debug bool `json:"debug" envconfig:"DEBUG"` // contains filtered or unexported fields }
Config holds the configuration data
func (*Config) ClientTimeout ¶ added in v0.4.0
ClientTimeout returns the timeout for the RPC client
func (*Config) ListenAddr ¶
ListenAddr returns the listen address for the API server
Click to show internal directories.
Click to hide internal directories.