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, onDataFormatError func(string, interface{}) error) 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
Click to show internal directories.
Click to hide internal directories.