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 ConfigGraphSet = wire.NewSet( NewServerConfiguration, NewMetricServerCfg, )
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
Click to show internal directories.
Click to hide internal directories.