etcd: go.etcd.io/etcd/wal/walpb Index | Files

package walpb

import "go.etcd.io/etcd/wal/walpb"

Package walpb is a generated protocol buffer package.

It is generated from these files:

record.proto

It has these top-level messages:

Record
Snapshot

Index

Package Files

record.go record.pb.go

Variables

var (
    ErrInvalidLengthRecord = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowRecord   = fmt.Errorf("proto: integer overflow")
)
var (
    ErrCRCMismatch = errors.New("walpb: crc mismatch")
)

type Record Uses

type Record struct {
    Type             int64  `protobuf:"varint,1,opt,name=type" json:"type"`
    Crc              uint32 `protobuf:"varint,2,opt,name=crc" json:"crc"`
    Data             []byte `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

func (*Record) Descriptor Uses

func (*Record) Descriptor() ([]byte, []int)

func (*Record) Marshal Uses

func (m *Record) Marshal() (dAtA []byte, err error)

func (*Record) MarshalTo Uses

func (m *Record) MarshalTo(dAtA []byte) (int, error)

func (*Record) ProtoMessage Uses

func (*Record) ProtoMessage()

func (*Record) Reset Uses

func (m *Record) Reset()

func (*Record) Size Uses

func (m *Record) Size() (n int)

func (*Record) String Uses

func (m *Record) String() string

func (*Record) Unmarshal Uses

func (m *Record) Unmarshal(dAtA []byte) error

func (*Record) Validate Uses

func (rec *Record) Validate(crc uint32) error

type Snapshot Uses

type Snapshot struct {
    Index            uint64 `protobuf:"varint,1,opt,name=index" json:"index"`
    Term             uint64 `protobuf:"varint,2,opt,name=term" json:"term"`
    XXX_unrecognized []byte `json:"-"`
}

func (*Snapshot) Descriptor Uses

func (*Snapshot) Descriptor() ([]byte, []int)

func (*Snapshot) Marshal Uses

func (m *Snapshot) Marshal() (dAtA []byte, err error)

func (*Snapshot) MarshalTo Uses

func (m *Snapshot) MarshalTo(dAtA []byte) (int, error)

func (*Snapshot) ProtoMessage Uses

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset Uses

func (m *Snapshot) Reset()

func (*Snapshot) Size Uses

func (m *Snapshot) Size() (n int)

func (*Snapshot) String Uses

func (m *Snapshot) String() string

func (*Snapshot) Unmarshal Uses

func (m *Snapshot) Unmarshal(dAtA []byte) error

Package walpb imports 6 packages (graph) and is imported by 65 packages. Updated 2018-08-29. Refresh now. Tools for package owners.