Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLineConfiguration ¶
type CommandLineConfiguration struct {
ConfigFilePath string
}
func GetCommandLineConfiguration ¶
func GetCommandLineConfiguration() (config *CommandLineConfiguration, err error)
GetCommandLineConfiguration parses and loads command-line configuration
type Config ¶
type Config struct { Logger DatabaseConnectOpts HttpServer WebSocketConfig }
type DatabaseConnectOpts ¶
type DatabaseConnectOpts struct { Addresses []string Database string AuthKey string DiscoverHosts bool Address string Timeout Duration WriteTimeout Duration ReadTimeout Duration MaxIdle int MaxOpen int NodeRefreshInterval Duration Log bool // contains filtered or unexported fields }
func (DatabaseConnectOpts) LogFile ¶
func (d DatabaseConnectOpts) LogFile() io.Writer
type Duration ¶
func (*Duration) UnmarshalTOML ¶
type HttpServer ¶
type Logger ¶
type Logger struct { LogFilePath string Debug bool LoggingLevel string LogFile *reopen.FileWriter }
type WebSocketConfig ¶
type WebSocketConfig struct { WriteWait Duration // Time allowed to read the next pong message from the peer. PongWait Duration // Send pings to peer with this period. Must be less than pongWait. PingPeriod Duration // Maximum message size allowed from peer. MaxMessageSize int64 ReadBufferSize int WriteBufferSize int }
Click to show internal directories.
Click to hide internal directories.