Documentation
¶
Index ¶
Constants ¶
View Source
const ( UUIDEvent string = "UUID_EVENT" UpdateConfigurationEvent string = "UPDATE_CONFIGURATION_EVENT" )
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Types ¶
type Client ¶
func NewConfigDBClient ¶
type DynamodbDBCfg ¶
type DynamodbDBCfg struct { Table string `json:"config_dynamodb_table" envconfig:"CONFIG_DYNAMODB_TABLE" required:"true"` AppName string `json:"app_name" envconfig:"APP_NAME" required:"true" default:""` Env string `json:"env" envconfig:"ENV" required:"true" default:"dev"` Version int64 `json:"version" envconfig:"VERSION" required:"true"` SecretsManager SecretsManagerCfg `json:"secrets_manager" envconfig:"SECRETS_MANAGER"` RequestTimeoutInMillisecond int64 `` /* 141-byte string literal not displayed */ }
type GeneralConfigServerError ¶
type GeneralConfigServerError struct { *rzerrors.RZError *rzerrors.ErrorWithID }
func NewGeneralConfigServerError ¶
func NewGeneralConfigServerError(code, msg string) *GeneralConfigServerError
func (*GeneralConfigServerError) Wrap ¶
func (e *GeneralConfigServerError) Wrap(err error) *GeneralConfigServerError
type Option ¶
type Option func(o *Options)
Option optional parameter as function
func WithLogger ¶
func WithSecretsManager ¶
func WithSecretsManager(secretsManager *secretsmanager.SecretsManager) Option
type Options ¶
Options struct to keep all parameters in context.Context
func NewOptions ¶
NewOptions convert all Option function to Options struct
type SecretsManagerCfg ¶
type ServerCfg ¶
type ServerCfg struct { ServerAddress string `` /* 140-byte string literal not displayed */ AppName string `mapstructure:"app_name" json:"app_name" envconfig:"APP_NAME" required:"true" default:""` Env string `mapstructure:"env" json:"env" envconfig:"ENV" required:"true" default:"dev"` SecretsManager SecretsManagerCfg `mapstructure:"secrets_manager" json:"secrets_manager" envconfig:"SECRETS_MANAGER"` IsSecure bool `mapstructure:"is_secure" json:"is_secure" envconfig:"IS_SECURE" default:"true"` EnableAutoReconnect bool `mapstructure:"enable_auto_reconnect" json:"enable_auto_reconnect" envconfig:"ENABLE_AUTO_RECONNECT" default:"true"` DialTimeoutInMillisecond int64 `` /* 132-byte string literal not displayed */ ReconnectBackoffInMillisecond int64 `` /* 147-byte string literal not displayed */ RequestTimeoutInMillisecond int64 `` /* 141-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.