config

package
v0.0.0-...-1427ac7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AMQPConfig

type AMQPConfig struct {
	Host     string
	Port     uint
	User     string
	Password string
}

func NewAMQPConfig

func NewAMQPConfig(config AppConfig) AMQPConfig

type APIConfig

type APIConfig struct {
	GRPC GRPCConfig
}

type AppConfig

type AppConfig struct {
	API        APIConfig
	Debug      DebugConfig
	AMQP       AMQPConfig
	Monitoring MonitoringConfig
}

func NewAppConfig

func NewAppConfig() (AppConfig, error)

type DebugConfig

type DebugConfig struct {
	Debug bool
}

func NewDebugConfig

func NewDebugConfig(config AppConfig) DebugConfig

type GRPCConfig

type GRPCConfig struct {
	Host string
	Port uint
}

func NewGrpcConfig

func NewGrpcConfig(config AppConfig) GRPCConfig

type MonitoringConfig

type MonitoringConfig struct {
	Host string
	Port uint16
}

func NewMonitoringConfig

func NewMonitoringConfig(config AppConfig) MonitoringConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳