service

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 8 Imported by: 0

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 Config

type Config struct {
	OutputFormat string

	Log zapctxd.Config
	N26 N26Config
}

Config is a global config for the application.

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 N26Config

type N26Config struct {
	BaseURL             string
	Username            string
	Password            string
	Device              uuid.UUID
	CredentialsProvider CredentialsProviderType `toml:"credentials"`
	MFAWait             time.Duration
	MFATimeout          time.Duration
}

N26Config represents configuration for N26 Client.

Directories

Path Synopsis
Package configurator provides read / write functionalities to manage application configuration.
Package configurator provides read / write functionalities to manage application configuration.

Jump to

Keyboard shortcuts

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