graph

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrContextDone = errors.New("context done while closing error consumer")

Functions

func Test

func Test(backend, query, content bool) *mock.Mock

Test sets flags for managing responses from the Mock driver

Types

type DB

DB contains the widest possible selection of functionality provided by any implementation of this abstraction

func New

func New(ctx context.Context, choice Subsets) (*DB, error)

New DB returned according to provided subsets and the environment config satisfying the interfaces requested by the choice of subsets

func NewCodeListStore

func NewCodeListStore(ctx context.Context) (*DB, error)

NewCodeListStore returns a configured DB containing the CodeList functionality

func NewDimensionStore

func NewDimensionStore(ctx context.Context) (*DB, error)

NewDimensionStore returns a configured DB containing the Dimension functionality

func NewHierarchyStore

func NewHierarchyStore(ctx context.Context) (*DB, error)

NewHierarchyStore returns a configured DB containing the Hierarchy functionality

func NewInstanceStore

func NewInstanceStore(ctx context.Context) (*DB, error)

NewInstanceStore returns a configured DB containing the Instance functionality

func NewObservationStore

func NewObservationStore(ctx context.Context) (*DB, error)

NewObservationStore returns a configured DB containing the Observation functionality

func (DB) ErrorChan added in v2.3.0

func (db DB) ErrorChan() chan error

ErrorChan returns the error channel associated with this DB

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

func (*ErrorConsumer) Close added in v2.1.0

func (c *ErrorConsumer) Close(ctx context.Context) error

Close blocks until the go routine has finished

type Subsets

type Subsets struct {
	CodeList    bool
	Hierarchy   bool
	Instance    bool
	Observation bool
	Dimension   bool
}

Subsets allows a clear and concise way of requesting any combination of functionality by groups of node types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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