Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultInsertBatchSize = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"username"` Password string `yaml:"password"` Name string `yaml:"database"` SSLMode string `yaml:"ssl_mode"` }
Database contains configuration details for database.
type Duration ¶ added in v0.0.16
Duration represents custom type for unmarshaling string. For example: "500ms", "1s", "2m", etc.
func (*Duration) UnmarshalText ¶ added in v0.0.16
UnmarshalText implements yaml unmarshaler.
type NATS ¶ added in v0.0.31
type NATS struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` }
NATS contains configuration details for application event API.
type Server ¶ added in v0.0.16
type Server struct { ShutdownTimeout Duration `yaml:"shutdown_timeout"` ReadTimeout Duration `yaml:"read_timeout"` WriteTimeout Duration `yaml:"write_timeout"` IdleTimeout Duration `yaml:"idle_timeout"` }
Server represents settings for creating http server.
Click to show internal directories.
Click to hide internal directories.