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 Chain33Client

type Chain33Client struct {
	BlockChainAddr string
	Title          string
}

type Config

type Config struct {
	Env            string
	Platform       string
	Server         *HttpServer
	MySQL          *MySQL
	Debug          *Debug
	Release        *Release
	IdGenRPCClient *RPCClient
	CdkMaxNumber   int64
	Chain33Client  Chain33Client
	CdkMod         bool
}
var (
	Conf *Config
)

func Default

func Default() *Config

type Debug

type Debug struct {
	Flag bool
}

type HttpServer

type HttpServer struct {
	Addr string
}

type MySQL

type MySQL struct {
	Host string
	Port int32
	User string
	Pwd  string
	Db   string
}

type RPCClient

type RPCClient struct {
	RegAddrs string // etcd addrs, seperate by ','
	Schema   string
	SrvName  string // call
	Dial     xtime.Duration
	Timeout  xtime.Duration
}

RPCClient is RPC client config.

type Release

type Release struct {
	Key                 string
	Issuer              string
	TokenExpireDuration time.Duration
	UserName            string
	Password            string
}

Jump to

Keyboard shortcuts

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