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

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
	Etcd
	Mysql
}

func Init

func Init(filePath string) *Config

type Etcd

type Etcd struct {
	Host string
}

type Kafka

type Kafka struct {
	BrokerAddrs string
}

type Log

type Log struct {
	Name  string
	Level int
}

type Mysql

type Mysql struct {
	Addr         string
	Db           string
	User         string
	Password     string
	MaxIdleConns int
	MaxOpenConns int
}

type Redis

type Redis struct {
	Host string
}

type Server

type Server struct {
	Port int
}

Jump to

Keyboard shortcuts

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