common

package
v0.0.0-...-03b2dd0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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