config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AES

type AES interface {
	AESKey() string
	AESHmacKey() string
}

AES defines config getters for the AES Encryptor parameters.

type DB

type DB interface {
	DBHost() string
	DBName() string
	DBTable() string
	DBUsername() string
	DBPassword() string
	DBKeyColumn() string
	DBValueColumn() string
}

DB defines config getters for the database Store parameters.

type Encryptor

type Encryptor interface {
	SelectedEncryptor
	KMS
	AES
	KDF
}

Encryptor defines the interface providing getters related to encryptors

type Interface

type Interface interface {
	Store
	Encryptor
}

Interface combines the Store and Encryptor interfaces

func New

func New() Interface

New returns a config accessor that implements Interface as singleton

type KDF added in v1.1.0

type KDF interface {
	KDFKey() string
}

AES defines config getters for the AES Encryptor parameters.

type KMS

type KMS interface {
	KMSKeyID() string
	KMSRegion() string
}

KMS defines config getters for the KMS Encryptor parameters.

type Redis

type Redis interface {
	RedisHost() string
	RedisDbIndex() int
	RedisPassword() string
	RedisMaxRetries() int
	RedisReadTimeout() time.Duration
	RedisWriteTimeout() time.Duration
}

Redis defines config getters for the Redis store parameters.

type SelectedEncryptor

type SelectedEncryptor interface {
	Encryptor() string
}

SelectedEncryptor defines config getters for the Encryptor type.

type SelectedStore

type SelectedStore interface {
	Store() string
}

SelectedStore defines config getters for the Store type.

type Store

type Store interface {
	SelectedStore
	Redis
	DB
}

Store defines the interface providing getters related to stores

Jump to

Keyboard shortcuts

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