Documentation ¶
Overview ¶
Package configuration implements configuration service required by the api-gateway service
Package configuration implements configuration service required by the api-gateway service ¶
Package configuration implements configuration service required by the tenant service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUnknownError ¶
IsUnknownError indicates whether the error is of type UnknownError
func NewUnknownError ¶
NewUnknownError creates a new UnknownError error
func NewUnknownErrorWithError ¶
NewUnknownErrorWithError creates a new UnknownError error
Types ¶
type ConfigurationContract ¶
type ConfigurationContract interface { // GetHttpsHost retrieves HTTPS host name // Returns the HTTPS host name or error if something goes wrong GetHttpsHost() (string, error) // GetHttpsPort retrieves HTTPS port number // Returns the HTTPS port number or error if something goes wrong GetHttpsPort() (int, error) // GetTenantServiceAddress retrieves tenant service full gRPC address and returns it. // The address will be used to dial the gRPC client to connect to the tenant service. // Returns the tenant service address or error if something goes wrong GetTenantServiceAddress() (string, error) }
ConfigurationContract declares the service that provides configuration required by different Tenat modules
func NewEnvConfigurationService ¶
func NewEnvConfigurationService() (ConfigurationContract, error)
NewEnvConfigurationService creates new instance of the EnvConfigurationService, setting up all dependencies and returns the instance Returns the new service or error if something goes wrong
type UnknownError ¶
UnknownError indicates that an unknown error has happened
func (UnknownError) Error ¶
func (e UnknownError) Error() string
Error returns message for the UnknownError error type Returns the error nessage
func (UnknownError) Unwrap ¶
func (e UnknownError) Unwrap() error
Unwrap returns the err if provided through NewUnknownErrorWithError function, otherwise returns nil