Documentation
¶
Index ¶
- type Environment
- func (e *Environment) GetConfig() *model.Config
- func (e *Environment) GetCountry() string
- func (e *Environment) GetCryptoNamespace() string
- func (e *Environment) GetLogger() logr.Logger
- func (e *Environment) GetMode() string
- func (e *Environment) GetRegion() string
- func (e *Environment) GetSession() *gocql.Session
- func (e *Environment) IsHealthy() bool
- func (e *Environment) SetConfig(config *model.Config)
- func (e *Environment) SetCryptoNamespace(namespace string)
- func (e *Environment) SetLogger(logger logr.Logger)
- func (e *Environment) SetMode(mode string)
- func (e *Environment) SetSession(session *gocql.Session)
- func (env *Environment) SetSwaggerBasePath(path string)
- func (env *Environment) SwaggerOptions() []func(config *ginSwagger.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func GetEnvironment ¶
func GetEnvironment() *Environment
func (*Environment) GetConfig ¶
func (e *Environment) GetConfig() *model.Config
func (*Environment) GetCountry ¶
func (e *Environment) GetCountry() string
func (*Environment) GetCryptoNamespace ¶
func (e *Environment) GetCryptoNamespace() string
func (*Environment) GetLogger ¶
func (e *Environment) GetLogger() logr.Logger
func (*Environment) GetMode ¶
func (e *Environment) GetMode() string
func (*Environment) GetRegion ¶
func (e *Environment) GetRegion() string
func (*Environment) GetSession ¶
func (e *Environment) GetSession() *gocql.Session
func (*Environment) IsHealthy ¶
func (e *Environment) IsHealthy() bool
func (*Environment) SetConfig ¶
func (e *Environment) SetConfig(config *model.Config)
func (*Environment) SetCryptoNamespace ¶
func (e *Environment) SetCryptoNamespace(namespace string)
func (*Environment) SetLogger ¶
func (e *Environment) SetLogger(logger logr.Logger)
func (*Environment) SetMode ¶
func (e *Environment) SetMode(mode string)
func (*Environment) SetSession ¶
func (e *Environment) SetSession(session *gocql.Session)
func (*Environment) SetSwaggerBasePath ¶
func (env *Environment) SetSwaggerBasePath(path string)
SetSwaggerBasePath sets the base path that will be used by swagger ui for requests url generation
func (*Environment) SwaggerOptions ¶
func (env *Environment) SwaggerOptions() []func(config *ginSwagger.Config)
SwaggerOptions swagger config options. See https://github.com/swaggo/gin-swagger?tab=readme-ov-file#configuration
Click to show internal directories.
Click to hide internal directories.