config

package
v0.0.0-...-02b4230 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

*

*
* @author liangjf
* @create on 2020/5/20
* @version 1.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	BucketNum int
}

type Config

type Config struct {
	Server
	Log
	Channel
}

func GetConfig

func GetConfig() *Config

func Init

func Init(filePath string) *Config

type Log

type Log struct {
	Name  string
	Level int
}

type Server

type Server struct {
	Port          int
	Name          string
	Network       string
	Proto         string
	RpcPort       int
	DiscoveryAddr string
}

Jump to

Keyboard shortcuts

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