Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Log Log `yaml:"log"` Server Server `yaml:"server"` Database Database `yaml:"database"` GRPC GRPC `yaml:"grpc"` Bot Bot `yaml:"bot"` ALPR ALPR `yaml:"alpr"` }
Config represents mix of settings for the app.
type Database ¶ added in v1.0.1
type Database struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"username"` Password string `yaml:"password"` Database string `yaml:"database"` SSLMode string `yaml:"ssl_mode"` }
Store represents configuration for the storage.
type Duration ¶
Duration represents custom type for unmarshaling string. For example: "500ms", "1s", "2m", etc.
func (*Duration) UnmarshalText ¶
UnmarshalText implements yaml unmarshaler.
type GRPC ¶ added in v1.0.1
type GRPC struct {
Vehicle ServiceGRPC `yaml:"vehicle"`
}
type Server ¶ added in v0.0.47
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.
type ServiceGRPC ¶ added in v1.0.1
func (*ServiceGRPC) Address ¶ added in v1.0.1
func (s *ServiceGRPC) Address() string
Click to show internal directories.
Click to hide internal directories.