conf

package
v0.0.0-...-022324c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv() string

Types

type Config

type Config struct {
	Service   kitex_conf.Service `json:"service" yaml:"service"`
	Server    kitex_conf.Server  `json:"server" yaml:"server"`
	Logger    log.Config         `json:"logger" yaml:"logger"`
	GeoOption GeoOption          `json:"geo_option" yaml:"geo_option"`
}

func GetConf

func GetConf() *Config

GetConf gets configuration instance

type GeoOption

type GeoOption struct {
	Language      string `json:"language"  yaml:"language"`
	Ip2RegionPath string `json:"ip2_region_path" yaml:"ip2_region_path"`
	GeoIPCityPath string `json:"geoip_city_path" yaml:"geoip_city_path"`
	GeoIPIspPath  string `json:"geoip_isp_path"  yaml:"geoip_isp_path"`
	CacheSize     int    `json:"cache_size"  yaml:"cache_size"`
}

Jump to

Keyboard shortcuts

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