file

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adaptor

type Adaptor struct {
	URI string
	FH  *os.File
}

func (Adaptor) Command

func (r Adaptor) Command(m message.Msg) error

func (Adaptor) Delete

func (r Adaptor) Delete(m message.Msg) error

func (Adaptor) From

func (r Adaptor) From(op ops.Op, namespace string, d data.Data) message.Msg

func (Adaptor) Insert

func (r Adaptor) Insert(m message.Msg) error

func (Adaptor) MustUseFile

func (r Adaptor) MustUseFile(name string) message.Adaptor

func (Adaptor) Name

func (r Adaptor) Name() string

func (Adaptor) Update

func (r Adaptor) Update(m message.Msg) error

func (Adaptor) UseFile

func (r Adaptor) UseFile(uri string) (message.Adaptor, error)

type Message

type Message struct {
	TS        int64
	MapData   data.Data
	NS        string
	Operation ops.Op
}

func (*Message) Data

func (f *Message) Data() data.Data

func (*Message) ID

func (f *Message) ID() string

func (*Message) Namespace

func (f *Message) Namespace() string

func (*Message) OP

func (f *Message) OP() ops.Op

func (*Message) Timestamp

func (f *Message) Timestamp() int64

Jump to

Keyboard shortcuts

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