conf

package
v0.0.0-...-c4c7d96 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoConfig

type MongoConfig struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

func InitMongoConfig

func InitMongoConfig(configPath string) (*MongoConfig, error)

type MqConfig

type MqConfig struct {
	Host        string   `yaml:"host"`
	Port        string   `yaml:"port"`
	User        string   `yaml:"user"`
	Password    string   `yaml:"password"`
	Exchange    string   `yaml:"exchange"`
	Queue       string   `yaml:"queue"`
	RoutingKeys []string `yaml:"routing_keys"`
}

func InitRabbitmqConfig

func InitRabbitmqConfig(configPath string) (*MqConfig, error)

type RedisConfig

type RedisConfig struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
	DB   int    `yaml:"db"`
}

func InitRedisConfig

func InitRedisConfig(configPath string) (*RedisConfig, error)

Jump to

Keyboard shortcuts

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