config

package
v0.0.0-...-8103b37 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 {
	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"`

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

	Seqer Seqer           `json:"seqer"`
	Kafka xconf.KfkConf   `json:"kafka"`
	Redis redis.RedisConf `json:"redis"`

	Cron struct {
		SyncReplySpec string `json:"sync_reply_spec"`
	} `json:"cron"`

	DataProxyMode global.ProxyMode `json:"data_proxy_mode"`
}

func (*Config) GetDataProxyMode

func (c *Config) GetDataProxyMode() global.ProxyMode

type Seqer

type Seqer struct {
	Addr string `json:"addr"`
}

Jump to

Keyboard shortcuts

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