Documentation ¶
Index ¶
- Constants
- Variables
- type GRcpConfig
- func (g *GRcpConfig) AllSettings() map[string]interface{}
- func (g *GRcpConfig) Get(key string) interface{}
- func (g *GRcpConfig) GetBool(key string) bool
- func (g *GRcpConfig) GetClient() (*GRcpConfig, error)
- func (g *GRcpConfig) GetDuration(key string) time.Duration
- func (g *GRcpConfig) GetFloat64(key string) float64
- func (g *GRcpConfig) GetInt(key string) int
- func (g *GRcpConfig) GetInt32(key string) int32
- func (g *GRcpConfig) GetInt64(key string) int64
- func (g *GRcpConfig) GetIntSlice(key string) []int
- func (g *GRcpConfig) GetSizeInBytes(key string) uint
- func (g *GRcpConfig) GetString(key string) string
- func (g *GRcpConfig) GetStringMap(key string) map[string]interface{}
- func (g *GRcpConfig) GetStringMapString(key string) map[string]string
- func (g *GRcpConfig) GetStringMapStringSlice(key string) map[string][]string
- func (g *GRcpConfig) GetStringSlice(key string) []string
- func (g *GRcpConfig) GetTime(key string) time.Time
- func (g *GRcpConfig) GetUint(key string) uint
- func (g *GRcpConfig) GetUint32(key string) uint32
- func (g *GRcpConfig) GetUint64(key string) uint64
Constants ¶
View Source
const ( FN = "application" //生成配置文件的名称 Ext = "json" //生成配置文件的后缀 ServerHost = "GO_GRPC_CONFIG_SERVER_HOST" )
Variables ¶
View Source
var (
I *info
)
Functions ¶
This section is empty.
Types ¶
type GRcpConfig ¶
type GRcpConfig struct { Env string //环境 Namespace string //命名空间 Project string //项目 Version string //版本 // contains filtered or unexported fields }
var (
C *GRcpConfig
)
func (*GRcpConfig) AllSettings ¶
func (g *GRcpConfig) AllSettings() map[string]interface{}
func (*GRcpConfig) Get ¶
func (g *GRcpConfig) Get(key string) interface{}
func (*GRcpConfig) GetBool ¶
func (g *GRcpConfig) GetBool(key string) bool
func (*GRcpConfig) GetClient ¶
func (g *GRcpConfig) GetClient() (*GRcpConfig, error)
func (*GRcpConfig) GetDuration ¶
func (g *GRcpConfig) GetDuration(key string) time.Duration
func (*GRcpConfig) GetFloat64 ¶
func (g *GRcpConfig) GetFloat64(key string) float64
func (*GRcpConfig) GetInt ¶
func (g *GRcpConfig) GetInt(key string) int
func (*GRcpConfig) GetInt32 ¶
func (g *GRcpConfig) GetInt32(key string) int32
func (*GRcpConfig) GetInt64 ¶
func (g *GRcpConfig) GetInt64(key string) int64
func (*GRcpConfig) GetIntSlice ¶
func (g *GRcpConfig) GetIntSlice(key string) []int
func (*GRcpConfig) GetSizeInBytes ¶
func (g *GRcpConfig) GetSizeInBytes(key string) uint
func (*GRcpConfig) GetString ¶
func (g *GRcpConfig) GetString(key string) string
func (*GRcpConfig) GetStringMap ¶
func (g *GRcpConfig) GetStringMap(key string) map[string]interface{}
func (*GRcpConfig) GetStringMapString ¶
func (g *GRcpConfig) GetStringMapString(key string) map[string]string
func (*GRcpConfig) GetStringMapStringSlice ¶
func (g *GRcpConfig) GetStringMapStringSlice(key string) map[string][]string
func (*GRcpConfig) GetStringSlice ¶
func (g *GRcpConfig) GetStringSlice(key string) []string
func (*GRcpConfig) GetUint ¶
func (g *GRcpConfig) GetUint(key string) uint
func (*GRcpConfig) GetUint32 ¶
func (g *GRcpConfig) GetUint32(key string) uint32
func (*GRcpConfig) GetUint64 ¶
func (g *GRcpConfig) GetUint64(key string) uint64
Directories ¶
Path | Synopsis |
---|---|
kitex_gen
|
|
grpcConfig/grpcconfig
Code generated by Kitex v0.0.5.
|
Code generated by Kitex v0.0.5. |
Click to show internal directories.
Click to hide internal directories.