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 Config

type Config struct {
	Server
	Log
	Kafka
	Redis
}

func Init

func Init(filePath string) *Config

type Kafka

type Kafka struct {
	BrokerAddrs string
}

type Log

type Log struct {
	Name  string
	Level int
}

type Redis

type Redis struct {
	Host string
}

type Server

type Server struct {
	Network       string
	RpcPort       int
	DiscoveryAddr string
}

Jump to

Keyboard shortcuts

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