service

package
v0.0.0-...-398e551 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config) error

Types

type AuthConfig

type AuthConfig struct {
	Addr      string `yaml:"addr"`
	Port      int    `yaml:"port"`
	SecretKey string `yaml:"key"`
}

type Config

type Config struct {
	Auth AuthConfig `yaml:"auth"`
	DB   ConfigDB   `yaml:"db"`
}

type ConfigDB

type ConfigDB struct {
	Username string `yaml:"username"`
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Dbname   string `yaml:"dbname"`
	Password string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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