Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2025 v0.0.1 Mar 28, 2025 Changes in this version + func InitConfig() (err error) + func InitConfigEmbed(fs embed.FS) (err error) + func NewConfig[T any](conf *T) (config *T, err error) + func SetConfigPath(confPath string) + func SetConfigType(confType string) + func Unmarshal(rawVal interface{}, opts ...DecoderConfigOption) error + type Api struct + Secret string + func (a Api) String() (data string) + type App struct + Env string + Name string + type Config struct + Api Api + App App + Es *ves.Options + HttpServer HttpServer + Log *vlog.Options + Metric *vmetric.Options + Mongodb *vmongodb.Options + Mysql *vmysql.Options + Redis *redis.UniversalOptions + TcpServer vtcp.Server + WebsocketServer vwebsocket.Server + func (c *Config) GetEs() *ves.Options + func (c *Config) GetHttpServer() HttpServer + func (c *Config) GetLog() *vlog.Options + func (c *Config) GetMetric() *vmetric.Options + func (c *Config) GetMongodb() *vmongodb.Options + func (c *Config) GetMysql() *vmysql.Options + func (c *Config) GetRedis() *redis.UniversalOptions + func (c *Config) GetTcpServer() vtcp.Server + func (c *Config) GetWebsocketServer() vwebsocket.Server + type DecoderConfigOption = viper.DecoderConfigOption + type HttpServer struct + Address string + Model string + type IConfig interface + GetEs func() *ves.Options + GetHttpServer func() HttpServer + GetLog func() *vlog.Options + GetMetric func() *vmetric.Options + GetMongodb func() *vmongodb.Options + GetMysql func() *vmysql.Options + GetRedis func() *redis.UniversalOptions + GetTcpServer func() vtcp.Server + GetWebsocketServer func() vwebsocket.Server