writer

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: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLWriter

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

SQLWriter writer for writing events

func NewSQLWriter

func NewSQLWriter(storage *storage.Storage, ser marshal.Serializer) *SQLWriter

NewSQLWriter creates a new sql writer

func (*SQLWriter) Write

func (w *SQLWriter) Write(event model.Event) error

Write writes a value to db table

type Writer

type Writer interface {
	Write(model.Event) error
}

Writer Interface for writing events to storage

Jump to

Keyboard shortcuts

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