Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelMethod = "method" LabelSuccess = "success" )
Variables ¶
This section is empty.
Functions ¶
func NewMock ¶
func NewMock() interface { EventReader EventWriter }
Types ¶
type DB ¶
type DB interface { LogEvent(flux.InstanceID, flux.Event) error AllEvents(flux.InstanceID, time.Time, int64) ([]flux.Event, error) EventsForService(flux.InstanceID, flux.ServiceID, time.Time, int64) ([]flux.Event, error) GetEvent(flux.EventID) (flux.Event, error) io.Closer }
func InstrumentedDB ¶
type EventReadWriter ¶
type EventReadWriter interface { EventReader EventWriter }
type EventReader ¶
type EventReader interface { // AllEvents returns a history for every service. Events must be // returned in descending timestamp order. AllEvents(time.Time, int64) ([]flux.Event, error) // EventsForService returns the history for a particular // service. Events must be returned in descending timestamp order. EventsForService(flux.ServiceID, time.Time, int64) ([]flux.Event, error) // GetEvent finds a single event, by ID. GetEvent(flux.EventID) (flux.Event, error) }
type EventWriter ¶
Click to show internal directories.
Click to hide internal directories.