Documentation
¶
Overview ¶
Package configuration implements configuration service required by the api-gateway service
Package configuration implements configuration service required by the api-gateway service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationContract ¶
type ConfigurationContract interface {
// GetHttpHost retrieves HTTP host name
// Returns the HTTP host name or error if something goes wrong
GetHttpHost() (string, error)
// GetHttpPort retrieves HTTP port number
// Returns the HTTP port number or error if something goes wrong
GetHttpPort() (int, error)
// GetProjectServiceAddress retrieves project service full gRPC address and returns it.
// The address will be used to dial the gRPC client to connect to the project service.
// Returns the project service address or error if something goes wrong
GetProjectServiceAddress() (string, error)
// GetEdgeClusterServiceAddress retrieves edge cluster service full gRPC address and returns it.
// The address will be used to dial the gRPC client to connect to the edge cluster service.
// Returns the edge cluster service address or error if something goes wrong
GetEdgeClusterServiceAddress() (string, error)
// GetJwksURL retrieves the JWKS URL
// Returns the JWKS URL or error if something goes wrong
GetJwksURL() (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
Click to show internal directories.
Click to hide internal directories.