contextstore

package
v6.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextStore

type ContextStore interface {

	// Store stores a contextID and eventInfo in the store
	Store(id string, item interface{}) error

	// Retrieve retrieves the context given a context ID
	Retrieve(id string, item interface{}) error

	// Remove removes the context given a context ID
	Remove(id string) error

	// Walk walks the whole store and returns a channel for the values
	Walk() (chan string, error)

	// DestroyStore destroys the store
	DestroyStore() error
}

ContextStore is the interface defining the context store

func NewFileContextStore

func NewFileContextStore(basePath string) ContextStore

NewFileContextStore is an implementation of ContextStore using a file. Each context is stored in its directory identified by id in a file called eventInfo.data

Directories

Path Synopsis
Package mockcontextstore is a generated GoMock package.
Package mockcontextstore is a generated GoMock package.

Jump to

Keyboard shortcuts

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