config

package
v0.0.0-...-ed03793 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 8 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 {
	Stage       string
	HTTP        *web.HTTPConfig
	GRPC        *grpc.GRPCConfig
	Logger      *logger.LoggerConfig
	Datasources *DatasourcesConfig
	UserAuth    *userauthgrpc.UserAuthConfig
	Product     *productgrpc.ProductConfig
	Redis       *redis.RedisConfig
}

func ProvideConfig

func ProvideConfig(binder config.Binder) (*Config, error)

func (Config) GetGORMConfig

func (c Config) GetGORMConfig() *gormds.GORMConfig

func (Config) GetGRPCConfig

func (c Config) GetGRPCConfig() *grpc.GRPCConfig

func (Config) GetHTTPConfig

func (c Config) GetHTTPConfig() *web.HTTPConfig

func (Config) GetLoggerConfig

func (c Config) GetLoggerConfig() *logger.LoggerConfig

func (Config) GetProductConfig

func (c Config) GetProductConfig() *productgrpc.ProductConfig

func (Config) GetRedisConfig

func (c Config) GetRedisConfig() *redis.RedisConfig

func (Config) GetStage

func (c Config) GetStage() string

func (Config) GetUserAuthConfig

func (c Config) GetUserAuthConfig() *userauthgrpc.UserAuthConfig

type DatasourcesConfig

type DatasourcesConfig struct {
	GORM *gormds.GORMConfig
}

Jump to

Keyboard shortcuts

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