config

package
v0.0.0-...-483d5da Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 2 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 {
	Logger   LoggerConfig   // `yaml:"logger"`
	DB       DBConfig       // `yaml:"db"`
	Server   ServerConfig   //`yaml:"server"`
	Rabbitmq RabbitmqConfig //`yaml:"rabbitmq"`
}

func NewConfig

func NewConfig(file string) (conf Config)

type DBConfig

type DBConfig struct {
	User     string // `yaml:"user"`
	Password string // `yaml:"password"`
	Host     string // `yaml:"host"`
	Port     string // `yaml:"port"`
	DBName   string // `yaml:"dbname"`
	SSLMode  string // `yaml:"sslmode"`
}

type LoggerConfig

type LoggerConfig struct {
	Level string // `yaml:"level"`
	File  string // `yaml:"file"`
}

type RabbitmqConfig

type RabbitmqConfig struct {
	URI       string // `yaml:"uri"`
	Queuename string // `yaml:"queuename"`
}

type ServerConfig

type ServerConfig struct {
	Host     string // `yaml:"host"`
	Port     string // `yaml:"port"`
	GrpcPort string // `yaml:"grpcport"`
}

Jump to

Keyboard shortcuts

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