config

package
v0.0.0-...-48543aa Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() *redis.Pool

LoadConfig load config Function

Types

type Config

type Config struct {
}

Config types

func (*Config) LoadBroker

func (cfg *Config) LoadBroker(timeOut time.Duration) (*DialConfig, error)

LoadBroker load config broker return dialConfig

type DialConfig

type DialConfig struct {
	RedisDial redis.Conn
	EtcdDial  *clientv3.Client
	Broker    string
}

DialConfig ...

Jump to

Keyboard shortcuts

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