Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPort = 8081
View Source
const MessageKey = "msg"
View Source
const TimeKey = "time"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Time string `json:"time"` Labels map[string]string `json:"labels"` Message string `json:"message"` }
func ParseEvent ¶
type FilesystemDatastore ¶
type FilesystemDatastore struct { Path string // contains filtered or unexported fields }
func (*FilesystemDatastore) Add ¶
func (d *FilesystemDatastore) Add(event *Event) error
func (*FilesystemDatastore) Initialize ¶
func (d *FilesystemDatastore) Initialize() error
func (*FilesystemDatastore) List ¶
func (d *FilesystemDatastore) List() ([]*Event, error)
type InMemoryDatastore ¶
type InMemoryDatastore struct {
// contains filtered or unexported fields
}
func (*InMemoryDatastore) Add ¶
func (d *InMemoryDatastore) Add(event *Event) error
func (*InMemoryDatastore) List ¶
func (d *InMemoryDatastore) List() ([]*Event, error)
Click to show internal directories.
Click to hide internal directories.