config

package
v0.0.0-...-4cc9216 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalEtcdConfig    EtcdConfig
	GlobalServiceConfig Config
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Name       string       `json:"name"`
	UserSrv    RPCSrvConfig `json:"user_srv"`
	MessageSrv RPCSrvConfig `json:"message_srv"`
	PushSrv    RPCSrvConfig `json:"push_srv"`
	LiveSrv    RPCSrvConfig `json:"live_srv"`
	LotterySrv RPCSrvConfig `json:"lottery_srv"`
	RecordSrv  RPCSrvConfig `json:"record_srv"`
}

type EtcdConfig

type EtcdConfig struct {
	Host string `mapstructure:"host" json:"host"`
	Port string `mapstructure:"port" json:"port"`
	Key  string `mapstructure:"key" json:"key"`
}

type RPCSrvConfig

type RPCSrvConfig struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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