configuration

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package configuration implements configuration service required by the user service

Package configuration implements configuration service required by the user service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationContract

type ConfigurationContract interface {
	// GetGrpcHost retrieves the gRPC host name
	// Returns the gRPC host name or error if something goes wrong
	GetGrpcHost() (string, error)

	// GetGrpcPort retrieves the gRPC port number
	// Returns the gRPC port number or error if something goes wrong
	GetGrpcPort() (int, error)

	// GetHttpHost retrieves the HTTP host name
	// Returns the HTTP host name or error if something goes wrong
	GetHttpHost() (string, error)

	// GetHttpPort retrieves the HTTP port number
	// Returns the HTTP port number or error if something goes wrong
	GetHttpPort() (int, error)

	// GetDatabaseConnectionString retrieves the database connection string
	// Returns the database connection string or error if something goes wrong
	GetDatabaseConnectionString() (string, error)

	// GetDatabaseName retrieves the database name
	// Returns the database name or error if something goes wrong
	GetDatabaseName() (string, error)

	// GetDatabaseCollectionName retrieves the database collection name
	// Returns the database collection name or error if something goes wrong
	GetDatabaseCollectionName() (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

Directories

Path Synopsis
Package mock_configuration is a generated GoMock package.
Package mock_configuration is a generated GoMock package.

Jump to

Keyboard shortcuts

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