Documentation ¶
Index ¶
- Variables
- func Test(backend, query, content bool) *mock.Mock
- type DB
- func New(ctx context.Context, choice Subsets) (*DB, error)
- func NewCodeListStore(ctx context.Context) (*DB, error)
- func NewDimensionStore(ctx context.Context) (*DB, error)
- func NewHierarchyStore(ctx context.Context) (*DB, error)
- func NewInstanceStore(ctx context.Context) (*DB, error)
- func NewObservationStore(ctx context.Context) (*DB, error)
- type ErrorConsumer
- type Subsets
Constants ¶
This section is empty.
Variables ¶
var ErrContextDone = errors.New("context done while closing error consumer")
Functions ¶
Types ¶
type DB ¶
type DB struct { driver.Driver driver.CodeList driver.Hierarchy driver.Instance driver.Observation driver.Dimension Errors chan error }
DB contains the widest possible selection of functionality provided by any implementation of this abstraction
func New ¶
New DB returned according to provided subsets and the environment config satisfying the interfaces requested by the choice of subsets
func NewCodeListStore ¶
NewCodeListStore returns a configured DB containing the CodeList functionality
func NewDimensionStore ¶
NewDimensionStore returns a configured DB containing the Dimension functionality
func NewHierarchyStore ¶
NewHierarchyStore returns a configured DB containing the Hierarchy functionality
func NewInstanceStore ¶
NewInstanceStore returns a configured DB containing the Instance functionality
func NewObservationStore ¶
NewObservationStore returns a configured DB containing the Observation functionality
type ErrorConsumer ¶ added in v2.1.0
type ErrorConsumer struct {
// contains filtered or unexported fields
}
ErrorConsumer maintains a go routine to consume an error channel
func NewErrorConsumer ¶ added in v2.1.0
func NewErrorConsumer(errors chan error, consume func(error)) *ErrorConsumer
NewErrorConsumer starts a new go routine to consume errors
func NewLoggingErrorConsumer ¶ added in v2.1.0
func NewLoggingErrorConsumer(ctx context.Context, errors chan error) *ErrorConsumer