conf

package
v0.0.0-...-d9ed4fb Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 10 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" mapstructure:"service" yaml:"service"`
	Server        kitex_conf.Server  `json:"server" mapstructure:"server" yaml:"server"`
	Logger        log.Logger         `json:"logger" mapstructure:"logger" yaml:"logger"`
	Ip2RegionPath string             `json:"ip2_region_path" mapstructure:"ip2_region_path" yaml:"ip2_region_path"` //
}

func GetConf

func GetConf() *Config

GetConf gets configuration instance

Jump to

Keyboard shortcuts

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