storage

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStorage

type EventStorage interface {
	Store(*events.Event) error
	Last() (*events.Event, error)
	GetRecent() ([]*events.Event, error)
}

type MemoryList

type MemoryList struct {
	// contains filtered or unexported fields
}

func NewMemoryList

func NewMemoryList(capacity int) *MemoryList

func (*MemoryList) GetRecent

func (l *MemoryList) GetRecent() ([]*events.Event, error)

func (*MemoryList) Last

func (l *MemoryList) Last() (*events.Event, error)

func (*MemoryList) Store

func (l *MemoryList) Store(event *events.Event) error

Jump to

Keyboard shortcuts

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