Versions in this module Expand all Collapse all v0 v0.0.1 May 7, 2018 Changes in this version + var ErrIntOverflowCommands = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthCommands = fmt.Errorf("proto: negative length found during unmarshaling") + func MarshalCommand(command *Command) ([]byte, error) + type Begin struct + Name string + Txid uint64 + func (*Begin) Descriptor() ([]byte, []int) + func (*Begin) ProtoMessage() + func (m *Begin) GetName() string + func (m *Begin) GetTxid() uint64 + func (m *Begin) Marshal() (dAtA []byte, err error) + func (m *Begin) MarshalTo(dAtA []byte) (int, error) + func (m *Begin) Reset() + func (m *Begin) Size() (n int) + func (m *Begin) String() string + func (m *Begin) Unmarshal(dAtA []byte) error + type Checkpoint struct + Name string + func (*Checkpoint) Descriptor() ([]byte, []int) + func (*Checkpoint) ProtoMessage() + func (m *Checkpoint) GetName() string + func (m *Checkpoint) Marshal() (dAtA []byte, err error) + func (m *Checkpoint) MarshalTo(dAtA []byte) (int, error) + func (m *Checkpoint) Reset() + func (m *Checkpoint) Size() (n int) + func (m *Checkpoint) String() string + func (m *Checkpoint) Unmarshal(dAtA []byte) error + type Command struct + Payload isCommand_Payload + func NewBegin(txid uint64, name string) *Command + func NewCheckpoint(name string) *Command + func NewEnd(txid uint64) *Command + func NewFrames(txid uint64, filename string, frames *sqlite3.ReplicationFramesParams) *Command + func NewOpen(name string) *Command + func NewUndo(txid uint64) *Command + func UnmarshalCommand(data []byte) (*Command, error) + func (*Command) Descriptor() ([]byte, []int) + func (*Command) ProtoMessage() + func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (c *Command) Name() string + func (m *Command) GetBegin() *Begin + func (m *Command) GetCheckpoint() *Checkpoint + func (m *Command) GetEnd() *End + func (m *Command) GetFrames() *Frames + func (m *Command) GetOpen() *Open + func (m *Command) GetPayload() isCommand_Payload + func (m *Command) GetUndo() *Undo + func (m *Command) Marshal() (dAtA []byte, err error) + func (m *Command) MarshalTo(dAtA []byte) (int, error) + func (m *Command) Reset() + func (m *Command) Size() (n int) + func (m *Command) String() string + func (m *Command) Unmarshal(dAtA []byte) error + type Command_Begin struct + Begin *Begin + func (m *Command_Begin) MarshalTo(dAtA []byte) (int, error) + func (m *Command_Begin) Size() (n int) + type Command_Checkpoint struct + Checkpoint *Checkpoint + func (m *Command_Checkpoint) MarshalTo(dAtA []byte) (int, error) + func (m *Command_Checkpoint) Size() (n int) + type Command_End struct + End *End + func (m *Command_End) MarshalTo(dAtA []byte) (int, error) + func (m *Command_End) Size() (n int) + type Command_Frames struct + Frames *Frames + func (m *Command_Frames) MarshalTo(dAtA []byte) (int, error) + func (m *Command_Frames) Size() (n int) + type Command_Open struct + Open *Open + func (m *Command_Open) MarshalTo(dAtA []byte) (int, error) + func (m *Command_Open) Size() (n int) + type Command_Undo struct + Undo *Undo + func (m *Command_Undo) MarshalTo(dAtA []byte) (int, error) + func (m *Command_Undo) Size() (n int) + type End struct + Txid uint64 + func (*End) Descriptor() ([]byte, []int) + func (*End) ProtoMessage() + func (m *End) GetTxid() uint64 + func (m *End) Marshal() (dAtA []byte, err error) + func (m *End) MarshalTo(dAtA []byte) (int, error) + func (m *End) Reset() + func (m *End) Size() (n int) + func (m *End) String() string + func (m *End) Unmarshal(dAtA []byte) error + type Frames struct + Filename string + IsCommit int32 + PageSize int32 + Pages []*FramesPage + SyncFlags uint32 + Truncate uint32 + Txid uint64 + func (*Frames) Descriptor() ([]byte, []int) + func (*Frames) ProtoMessage() + func (m *Frames) GetFilename() string + func (m *Frames) GetIsCommit() int32 + func (m *Frames) GetPageSize() int32 + func (m *Frames) GetPages() []*FramesPage + func (m *Frames) GetSyncFlags() uint32 + func (m *Frames) GetTruncate() uint32 + func (m *Frames) GetTxid() uint64 + func (m *Frames) Marshal() (dAtA []byte, err error) + func (m *Frames) MarshalTo(dAtA []byte) (int, error) + func (m *Frames) Reset() + func (m *Frames) Size() (n int) + func (m *Frames) String() string + func (m *Frames) Unmarshal(dAtA []byte) error + type FramesPage struct + Data []byte + Flags uint32 + Number uint32 + func (*FramesPage) Descriptor() ([]byte, []int) + func (*FramesPage) ProtoMessage() + func (m *FramesPage) GetData() []byte + func (m *FramesPage) GetFlags() uint32 + func (m *FramesPage) GetNumber() uint32 + func (m *FramesPage) Marshal() (dAtA []byte, err error) + func (m *FramesPage) MarshalTo(dAtA []byte) (int, error) + func (m *FramesPage) Reset() + func (m *FramesPage) Size() (n int) + func (m *FramesPage) String() string + func (m *FramesPage) Unmarshal(dAtA []byte) error + type Open struct + Name string + func (*Open) Descriptor() ([]byte, []int) + func (*Open) ProtoMessage() + func (m *Open) GetName() string + func (m *Open) Marshal() (dAtA []byte, err error) + func (m *Open) MarshalTo(dAtA []byte) (int, error) + func (m *Open) Reset() + func (m *Open) Size() (n int) + func (m *Open) String() string + func (m *Open) Unmarshal(dAtA []byte) error + type Undo struct + Txid uint64 + func (*Undo) Descriptor() ([]byte, []int) + func (*Undo) ProtoMessage() + func (m *Undo) GetTxid() uint64 + func (m *Undo) Marshal() (dAtA []byte, err error) + func (m *Undo) MarshalTo(dAtA []byte) (int, error) + func (m *Undo) Reset() + func (m *Undo) Size() (n int) + func (m *Undo) String() string + func (m *Undo) Unmarshal(dAtA []byte) error