reader

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Read(uuid.UUID) ([]model.Event, error)
}

Reader interface for getting events

type SQLReader

type SQLReader struct {
	Storage    *storage.Storage
	Serializer marshal.Serializer
}

SQLReader for reading events

func NewSQLReader

func NewSQLReader(storage *storage.Storage, ser marshal.Serializer) *SQLReader

NewSQLReader creates a new sql reader

func (*SQLReader) Read

func (r *SQLReader) Read(sourceID uuid.UUID) ([]model.Event, error)

Read from db with source id

Jump to

Keyboard shortcuts

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