config

package
v0.0.0-...-358b630 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 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 Config

type Config struct {
	Http    Http    `mapstructure:"http"`
	Memphis Memphis `mapstructure:"memphis"`
}

func NewConfig

func NewConfig() (*Config, error)

type Http

type Http struct {
	Port int    `mapstructure:"port"`
	Mode string `mapstructure:"mode"` // "debug" or "release"
}

type Memphis

type Memphis struct {
	Host                     string `mapstructure:"host"`
	UserName                 string `mapstructure:"user_name"`
	Password                 string `mapstructure:"password"`
	AccessMessageStationName string `mapstructure:"access_message_station_name"`
	ProducerName             string `mapstructure:"producer_name"`
}

Jump to

Keyboard shortcuts

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