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: 5 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 {
	Env             string
	AppId           string
	Node            int32
	HttpServer      *HttpServer
	Redis           *redis.Config
	IdGenRPCClient  *RPCClient
	AnswerRPCClient *RPCClient
	//gRPC server
	TCRTCConfig *RTCConfig
}
var (
	Conf *Config
)

func Default

func Default() *Config

type HttpServer

type HttpServer struct {
	Addr 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 RTCConfig

type RTCConfig struct {
	SDKAppId  int
	SecretKey string
	Expire    int
}

RTCConfig 腾讯云音视频控制台配置

Jump to

Keyboard shortcuts

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