config

package
v0.0.0-...-b2a1d49 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Server  ServerConf
	Polaris PolarisConf
}
var Config Conf

func NewConfig

func NewConfig() *Conf

type LogConf

type LogConf struct {
	DefaultPath string `json:"default_path" yaml:"default_path"`
	ErrorPath   string `json:"error_path" yaml:"error_path"`
	MaxSize     int    `json:"max_size" yaml:"max_size"`
}

type PolarisConf

type PolarisConf struct {
	Service    string         `json:"service" yaml:"service"`
	Namespace  string         `json:"namespace" yaml:"namespace"`
	Group      string         `json:"group" yaml:"group"`
	Filename   string         `json:"filename" yaml:"filename"`
	RetryCount *int           `json:"retry_count" yaml:"retry_count"`
	Timeout    *time.Duration `json:"timeout" yaml:"timeout"`
}

type ServerConf

type ServerConf struct {
	Name     string  `json:"name" yaml:"name"`
	Host     string  `json:"host" yaml:"host"`
	Port     int     `json:"port" yaml:"port"`
	Protocol *string `json:"protocol" yaml:"protocol"`
	Region   string  `json:"zone" yaml:"zone"`
	Zone     string  `json:"region" yaml:"region"`
	Campus   string  `json:"campus" yaml:"campus"`
	Log      LogConf `json:"log" yaml:"log"`
}

Jump to

Keyboard shortcuts

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