config

package
v0.0.0-...-3c82dbe Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 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 {
	EnvConf      EnvConf                 `yaml:"EnvConf"`
	ProducerConf rabbitx.RabbitmqProConf `yaml:"ProducerConf"`
	ConsumerConf rabbitx.RabbitmqConConf `yaml:"ConsumerConf"`
}

func NewConfig

func NewConfig(configPath string) (*Config, error)

type EnvConf

type EnvConf struct {
	AppEnv                 string `yaml:"AppEnv"`
	ServerAddress          string `yaml:"ServerAddress"`
	ContextTimeout         int    `yaml:"ContextTimeout"`
	AccessTokenExpiryHour  int    `yaml:"AccessTokenExpiryHour"`
	RefreshTokenExpiryHour int    `yaml:"RefreshTokenExpiryHour"`
	AccessTokenSecret      string `yaml:"AccessTokenSecret"`
	RefreshTokenSecret     string `yaml:"RefreshTokenSecret"`
}

Jump to

Keyboard shortcuts

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