config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Init init config.

Types

type Config

type Config struct {
	Node int64
	//reg
	Reg *Reg
	//gRPC server
	GRPCServer *grpc.ServerConfig
}
var (

	// Conf config
	Conf *Config
)

func Default

func Default() *Config

Default new a config with specified defualt value.

type Reg

type Reg struct {
	Schema   string
	SrvName  string
	RegAddrs string // etcd addrs, seperate by ','
}

Reg is service register/discovery config

Jump to

Keyboard shortcuts

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