history

package
v0.0.0-...-6c7e5b9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateUnknown    ServiceState = "Unknown"
	StateRest                    = "At rest"
	StateInProgress              = "Release in progress"
)

Variables

View Source
var (
	// ErrNoSchemaDefinedForDriver is the error for when you've used a driver
	// with no schema defined. Programmer error.
	ErrNoSchemaDefinedForDriver = errors.New("schema not defined for driver")
)

Functions

This section is empty.

Types

type DB

type DB interface {
	// AllEvents returns a history for every service in the given
	// namespace
	AllEvents(namespace string) ([]Event, error)
	// EventsForService returns the history for a particular
	// (namespaced) service
	EventsForService(namespace, service string) ([]Event, error)
	// LogEvent records a message in the history of a service
	LogEvent(namespace, service, msg string) error
	// Close the database
	Close() error
}

func NewSQL

func NewSQL(driver, datasource string) (DB, error)

type Event

type Event struct {
	Service, Msg string
	Stamp        time.Time
}

type ServiceState

type ServiceState string

Jump to

Keyboard shortcuts

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