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"` 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"` }
Config holds the configuration data
func (*Config) ListenAddr ¶
ListenAddr returns a listen address
Click to show internal directories.
Click to hide internal directories.