config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	WithAMQP(opts ...Option) Config
	AMQPAddress() string
	AMQPConfig() (*framework.AMQPConfig, error)

	WithMasterLockKey(opts ...Option) Config
	MasterLockKey() string

	WithDatastore(opts ...Option) Config
	DataStore() (*framework.DatastoreConfig, error)

	WithLedgerStore(opts ...Option) Config
	LedgerStore() (*framework.LedgerStoreConfig, error)

	WithVDRI(opts ...Option) Config
	VDRIs() ([]map[string]interface{}, error)

	GetString(s string) string
	GetInt(s string) int

	Endpoint(s string) (*framework.Endpoint, error)

	WithLedgerGenesis(opts ...Option) Config
	LedgerGenesis() string

	WithIndyRegistry(opts ...Option) Config
	IndyRegistry() string
}

Config

type Option

type Option func(opts *vpr)

Option configures the config...

func WithFile

func WithFile(file string) Option

WithDBPrefix option is for adding prefix to db name.

type Provider

type Provider interface {
	Load(file string) Config
}

Provider rename to ConfigBuilder

type ViperConfigProvider

type ViperConfigProvider struct {
	DefaultConfigName string
}

func (*ViperConfigProvider) Load

func (r *ViperConfigProvider) Load(file string) Config

Jump to

Keyboard shortcuts

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