config

package
v0.0.0-...-bf60f30 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Http rest.RestConf      `json:"http"`
	Grpc zrpc.RpcServerConf `json:"grpc"`

	MySql struct {
		User   string `json:"user"`
		Pass   string `json:"pass"`
		Addr   string `json:"addr"`
		DbName string `json:"db_name"`
	} `json:"mysql"`

	Redis redis.RedisConf `json:"redis"`

	Oss struct {
		User            string `json:"user"`
		Pass            string `json:"pass"`
		Endpoint        string `json:"endpoint"`
		Location        string `json:"location"`
		Bucket          string `json:"bucket"`
		Prefix          string `json:"prefix"`
		DisplayEndpoint string `json:"display_endpoint"`
	} `json:"oss"`

	External struct {
		Grpc struct {
			Passport xconf.Discovery `json:"passport"`
			Counter  xconf.Discovery `json:"counter"`
		} `json:"grpc"`
	} `json:"external"`

	Salt string `json:"salt"`
}
var Conf Config

全局变量

Jump to

Keyboard shortcuts

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