sysstate

package
v0.0.0-...-1730ba2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sysstate handles the propagation of system state between the components

Package sysstate provides interfaces for storage related to the sysstate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Stores a new system state
	Store(context.Context, qaclana.State) error

	// Notify the caller on changes on the underlying system state
	Notifier() (<-chan qaclana.State, error)

	// Current gets the currently set system state
	Current() (qaclana.State, error)
}

Storage is a contract that concrete backing storages should implement

Directories

Path Synopsis
Package database implements an storage using a database as backend
Package database implements an storage using a database as backend
Package inmemory implements an in-memory storage of the system state
Package inmemory implements an in-memory storage of the system state
Package testutils provide a simple harness suite for ensuring conformance by implementations
Package testutils provide a simple harness suite for ensuring conformance by implementations

Jump to

Keyboard shortcuts

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