commonconfig

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloaderConfig added in v0.0.4

type DownloaderConfig struct {
	FinderConfig
	SourcePath string            `toml:"source_path"`
	LocalPath  string            `toml:"local_path"`
	Interval   int               `toml:"interval"`
	Extra      map[string]string `toml:"extra"`
}

type FinderConfig added in v0.0.4

type FinderConfig struct {
	Type      string `toml:"type"`
	Timeout   int    `toml:"timeout"`
	Endpoint  string `toml:"endpoint"`
	Region    string `toml:"region"`
	AccessKey string `toml:"access_key"`
	SecretKey string `toml:"secret_key"`
}

type HttpServerConfig

type HttpServerConfig struct {
	HTTPPort       int `toml:"http_port"`
	ReadTimeout    int `toml:"read_timeout"`
	WriteTimeout   int `toml:"write_timeout"`
	MaxHeaderBytes int `toml:"max_header_bytes"`
}

type MongoClientConfig

type MongoClientConfig struct {
	URL         string `toml:"url"`
	MaxPoolSize int    `toml:"max_pool_size"`
	Timeout     int    `toml:"timeout"`
}

type RedisConfig added in v0.0.3

type RedisConfig struct {
	Address            string         `toml:"address"`
	Password           string         `toml:"password"`
	DefaultDB          int            `toml:"default_db"`
	DBIndexes          map[string]int `toml:"db_indexes"`
	MinIdleConnections int            `toml:"min_idel_conns"`
	ReadTimeout        int            `toml:"read_timeout"`
	DialTimout         int            `toml:"dial_timeout"`
}

type ServerConfig

type ServerConfig struct {
	HttpServerConfig `toml:",inline"`
	ServiceEnv       map[string]string `toml:"sevice_env"`
	GRPCPort         int               `toml:"grpc_port"`
	HTTPSPort        int               `toml:"https_port"`
	ProjectName      string            `toml:"project_name"`
	PromePort        int               `toml:"prome_port"`
	PProfPort        int               `toml:"pprof_port"`
	Debug            bool              `toml:"debug"`
}

Jump to

Keyboard shortcuts

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