Documentation ¶ Index ¶ func LogMiddleware(next http.Handler) http.Handler func Run(cfg Config) error type Config func (c Config) Validate() error type PgConfig func (c PgConfig) Validate() error type Runner Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LogMiddleware ¶ func LogMiddleware(next http.Handler) http.Handler func Run ¶ func Run(cfg Config) error Types ¶ type Config ¶ type Config struct { ApiAddr string PublicAddr string RepoCfg PgConfig } func (Config) Validate ¶ func (c Config) Validate() error type PgConfig ¶ type PgConfig struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` } func (PgConfig) Validate ¶ func (c PgConfig) Validate() error type Runner ¶ type Runner struct { } Source Files ¶ View all Source files config.go runner.go Click to show internal directories. Click to hide internal directories.