configs

package
v0.0.0-...-e9f4405 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenExpiredTime = time.Duration(envx.GetInt("TOKEN_EXPRIED_TIME", 24)) * time.Hour
	SecretKey        = envx.GetString("SECRETKEY", "mysecretkey")
)
View Source
var (
	MinioHost       = envx.GetString("MINIO_HOST", "localhost:9000")
	MinioProtocol   = envx.GetString("MINIO_PROTOCOL", "http")
	AccessKeyId     = envx.GetString("ACCESS_KEY_ID", "I91rtieW4WuptqlNR6pn")
	SecretAccessKey = envx.GetString("SECRET_ACCESS_KEY", "xl1gMawfhfjQdXhXW7B2Yy3Bm4ZAHZcZoRjvkeGe")
	BuketName       = envx.GetString("MINIO_BUCKET_NAME", "bity")
)
View Source
var MaxPageLimit = envx.GetInt("MAX_PAGE_LIMIT", 100)

Functions

This section is empty.

Types

type MetricServerCfg

type MetricServerCfg struct {
	Port int
}

func NewMetricServerCfg

func NewMetricServerCfg() *MetricServerCfg

type ServerConfiguration

type ServerConfiguration struct {
	Port int
}

func NewServerConfiguration

func NewServerConfiguration() *ServerConfiguration

Jump to

Keyboard shortcuts

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