runner

package
v0.0.0-...-2f38b72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL