disposable

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 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 Log

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

Log is event log fetched from olympus server

func NewLog

func NewLog(log eventlog.Eventlog) (*Log, error)

NewLog creates log reader from remote log, log gets cleared after each read

func (*Log) Append

func (c *Log) Append(event eventlog.Event) (string, error)

Append appends Event to event log and returns its ID.

func (*Log) Read

func (c *Log) Read() ([]eventlog.Event, error)

Read reads all events in event log.

func (*Log) ReadFrom

func (c *Log) ReadFrom(id string) ([]eventlog.Event, error)

ReadFrom reads all events from the log starting at event with specified id (excluded). If id is not found behaves like Read().

func (*Log) ReadSingle

func (c *Log) ReadSingle(module, version string) (eventlog.Event, error)

ReadSingle gets the module metadata about the given module/version. If something went wrong doing the get operation, returns a non-nil error.

Jump to

Keyboard shortcuts

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