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: 12 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"`
}

type Config

type Config struct {
	Order   OrderConfig   `yaml:"order"`
	DB      ConfigDB      `yaml:"db"`
	Product ProductConfig `yaml:"product"`
	Auth    AuthConfig    `yaml:"auth"`
}

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"`
}

type OrderConfig

type OrderConfig struct {
	Addr string `yaml:"addr"`
	Port int    `yaml:"port"`
}

type ProductConfig

type ProductConfig struct {
	Addr string `yaml:"addr"`
	Port int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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