storage

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CreateDom    = uint8(0)
	DeleteDom    = uint8(1)
	CreateSketch = uint8(2)
	DeleteSketch = uint8(3)
	Add          = uint8(4)
)

CreateDom ...

Variables

This section is empty.

Functions

This section is empty.

Types

type AOF

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

AOF ...

func NewAOF

func NewAOF(path string) *AOF

NewAOF ...

func (*AOF) Append

func (aof *AOF) Append(op uint8, msg proto.Message) error

Append ...

func (*AOF) Read

func (aof *AOF) Read() (*Entry, error)

Read ...

func (*AOF) Run

func (aof *AOF) Run()

Run ...

type Entry

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

Entry ...

func (*Entry) Msg

func (entry *Entry) Msg() proto.Message

Msg ...

func (*Entry) OpType

func (entry *Entry) OpType() uint8

OpType ...

func (*Entry) RawMsg

func (entry *Entry) RawMsg() []byte

RawMsg ...

Jump to

Keyboard shortcuts

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