config

package
v0.0.0-...-cb2ae7d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name     string `yaml:"name"`
	Profiles string `yaml:"profiles"`
}

type ConnConfig

type ConnConfig struct {
	AuthTimeout  uint32 `yaml:"auth-timeout"`
	IdleTimeout  uint32 `yaml:"idle-timeout"`
	AuthFilePath string `yaml:"auth-file-path"`
}

func GetConnConfig

func GetConnConfig() ConnConfig

type LogConfig

type LogConfig struct {
	Debug bool   `yaml:"debug"`
	Path  string `yaml:"path"`
}

type ServerConfig

type ServerConfig struct {
	App      AppConfig  `yaml:"app"`
	Web      WebConfig  `yaml:"web"`
	Log      LogConfig  `yaml:"log"`
	Conn     ConnConfig `yaml:"conn"`
	Services []*Service `yaml:"services"`
}

func GetSrvConfig

func GetSrvConfig() *ServerConfig

type Service

type Service struct {
	Name string   `yaml:"name"`
	Url  []string `yaml:"url"`
}

func GetServiceConfig

func GetServiceConfig() []*Service

type WebConfig

type WebConfig struct {
	Port int `yaml:"port"`
}

Jump to

Keyboard shortcuts

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