store

package
v0.0.0-...-4f042ae Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2015 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimelineEvent

type TimelineEvent struct {
	EventName string
	Host      string
	Start     time.Time
	End       time.Time
}

type UptoDataStore

type UptoDataStore interface {
	CreateContext(name string)
	ContextExists(name string) bool
	ListContexts() []string

	CreateNewTimeline(contextName string)
	GetLatestTimeline(contextName string) string
	ListContextTimelines(contextName string) []string

	GetTimelineEvents(contextName, timeline string) []TimelineEvent
	AddTimelineEvent(contextName, timeline string, event TimelineEvent)
}

UptoDataStore should be implemented to provide a persistence layer

for upto. Caching can also be provided by the implementor.

Jump to

Keyboard shortcuts

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