Documentation ¶
Overview ¶
Package service provides services to the application.
Index ¶
Constants ¶
View Source
const ( // CredentialsProviderKeychain indicates that the credentials provider is keychain. CredentialsProviderKeychain = CredentialsProviderType("keychain") // CredentialsProviderNone indicates that there is no credentials provider. CredentialsProviderNone = CredentialsProviderType("") // OutputFormatPrettyJSON is prettified json format. OutputFormatPrettyJSON = "pretty-json" // OutputFormatJSON is json format. OutputFormatJSON = "json" // OutputFormatCSV is csv format. OutputFormatCSV = "csv" // OutputFormatNone is no format. OutputFormatNone = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶ added in v0.4.8
type Configurator interface { Configure() error SafeRead() (Config, error) Read() (Config, error) Write(cfg Config) error }
Configurator manages application configuration.
type ConfiguratorProvider ¶ added in v0.4.8
type ConfiguratorProvider interface {
Configurator() Configurator
}
ConfiguratorProvider provides configurator.Configurator.
type CredentialsProviderType ¶
type CredentialsProviderType string
CredentialsProviderType indicates the type of a credentials provider.
type Locator ¶
type Locator struct { Config afero.Fs clock.ClockProvider io.DataWriterProvider io.StdioProvider ctxd.LoggerProvider ConfiguratorProvider n26aas.TransactionsFinderProvider }
Locator is a service locator.
Directories ¶
Path | Synopsis |
---|---|
Package configurator provides read / write functionalities to manage application configuration.
|
Package configurator provides read / write functionalities to manage application configuration. |
Click to show internal directories.
Click to hide internal directories.