configuration

package
v0.0.0-...-02d1e04 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func Get

func Get() (*Registry, error)

Get is a wrapper over New() which reads configuration file path from the environment variable.

func New

func New(configFilePath string) (*Registry, error)

func (*Registry) DefaultConfigError

func (c *Registry) DefaultConfigError() error

func (*Registry) DeveloperModeEnabled

func (c *Registry) DeveloperModeEnabled() bool

func (*Registry) GetAuthKeysPath

func (c *Registry) GetAuthKeysPath() string

func (*Registry) GetAuthServiceURL

func (c *Registry) GetAuthServiceURL() string

GetAuthServiceUrl returns Auth Service URL

func (*Registry) GetClusterServiceURL

func (c *Registry) GetClusterServiceURL() string

func (*Registry) GetDevModePrivateKey

func (c *Registry) GetDevModePrivateKey() []byte

func (*Registry) GetDiagnoseHTTPAddress

func (c *Registry) GetDiagnoseHTTPAddress() string

func (*Registry) GetEnvironment

func (c *Registry) GetEnvironment() string

func (*Registry) GetHTTPAddress

func (c *Registry) GetHTTPAddress() string

func (*Registry) GetLogLevel

func (c *Registry) GetLogLevel() string

func (*Registry) GetMetricsHTTPAddress

func (c *Registry) GetMetricsHTTPAddress() string

func (*Registry) GetPostgresConfigString

func (c *Registry) GetPostgresConfigString() string

func (*Registry) GetPostgresConnectionMaxIdle

func (c *Registry) GetPostgresConnectionMaxIdle() int

func (*Registry) GetPostgresConnectionMaxOpen

func (c *Registry) GetPostgresConnectionMaxOpen() int

func (*Registry) GetPostgresConnectionRetrySleep

func (c *Registry) GetPostgresConnectionRetrySleep() time.Duration

func (*Registry) GetPostgresConnectionTimeout

func (c *Registry) GetPostgresConnectionTimeout() int64

func (*Registry) GetPostgresDatabase

func (c *Registry) GetPostgresDatabase() string

func (*Registry) GetPostgresHost

func (c *Registry) GetPostgresHost() string

func (*Registry) GetPostgresPassword

func (c *Registry) GetPostgresPassword() string

func (*Registry) GetPostgresPort

func (c *Registry) GetPostgresPort() int64

func (*Registry) GetPostgresSSLMode

func (c *Registry) GetPostgresSSLMode() string

func (*Registry) GetPostgresTransactionTimeout

func (c *Registry) GetPostgresTransactionTimeout() time.Duration

func (*Registry) GetPostgresUser

func (c *Registry) GetPostgresUser() string

func (*Registry) GetSentryDSN

func (c *Registry) GetSentryDSN() string

func (*Registry) IsCleanTestDataEnabled

func (c *Registry) IsCleanTestDataEnabled() bool

func (*Registry) IsCleanTestDataErrorReportingRequired

func (c *Registry) IsCleanTestDataErrorReportingRequired() bool

func (*Registry) IsDBLogsEnabled

func (c *Registry) IsDBLogsEnabled() bool

func (*Registry) IsLogJSON

func (c *Registry) IsLogJSON() bool

func (*Registry) IsPostgresDeveloperModeEnabled

func (c *Registry) IsPostgresDeveloperModeEnabled() bool

func (*Registry) String

func (c *Registry) String() string

Jump to

Keyboard shortcuts

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