Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeSnapshot(snapshotData *SnapshotData) ([]byte, error)
- func Register(f FormatFunc)
- func ReportUploadPackError(w io.Writer, errMessage string)
- type FormatFunc
- type Hash
- type Listener
- type Member
- type Oplog
- func (*Oplog) Descriptor() ([]byte, []int)deprecated
- func (x *Oplog) GetObjPack() []byte
- func (x *Oplog) GetObjs() [][]byte
- func (x *Oplog) GetOps() []*Oplog_Op
- func (x *Oplog) GetParams() []string
- func (*Oplog) ProtoMessage()
- func (x *Oplog) ProtoReflect() protoreflect.Message
- func (x *Oplog) Reset()
- func (x *Oplog) String() string
- type Oplog_Op
- func (*Oplog_Op) Descriptor() ([]byte, []int)deprecated
- func (x *Oplog_Op) GetName() string
- func (x *Oplog_Op) GetOldTarget() []byte
- func (x *Oplog_Op) GetTarget() []byte
- func (*Oplog_Op) ProtoMessage()
- func (x *Oplog_Op) ProtoReflect() protoreflect.Message
- func (x *Oplog_Op) Reset()
- func (x *Oplog_Op) String() string
- type PeerID
- type ReqHandle
- type SnapshotData
Constants ¶
View Source
const (
HashLen = 20
)
Variables ¶
View Source
var File_op_proto protoreflect.FileDescriptor
Functions ¶
func EncodeSnapshot ¶
func EncodeSnapshot(snapshotData *SnapshotData) ([]byte, error)
func Register ¶
func Register(f FormatFunc)
func ReportUploadPackError ¶
Types ¶
type FormatFunc ¶
type Oplog ¶
type Oplog struct { Ops []*Oplog_Op `protobuf:"bytes,1,rep,name=ops" json:"ops,omitempty"` // [oneof ObjPack []byte `protobuf:"bytes,16,opt,name=obj_pack,json=objPack" json:"obj_pack,omitempty"` Objs [][]byte `protobuf:"bytes,17,rep,name=objs" json:"objs,omitempty"` Params []string `protobuf:"bytes,18,rep,name=params" json:"params,omitempty"` // oneof] // contains filtered or unexported fields }
func (*Oplog) Descriptor
deprecated
func (*Oplog) GetObjPack ¶
func (*Oplog) ProtoMessage ¶
func (*Oplog) ProtoMessage()
func (*Oplog) ProtoReflect ¶
func (x *Oplog) ProtoReflect() protoreflect.Message
type Oplog_Op ¶
type Oplog_Op struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Target []byte `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` OldTarget []byte `protobuf:"bytes,3,opt,name=old_target,json=oldTarget" json:"old_target,omitempty"` // contains filtered or unexported fields }
func (*Oplog_Op) Descriptor
deprecated
func (*Oplog_Op) GetOldTarget ¶
func (*Oplog_Op) ProtoMessage ¶
func (*Oplog_Op) ProtoMessage()
func (*Oplog_Op) ProtoReflect ¶
func (x *Oplog_Op) ProtoReflect() protoreflect.Message
type SnapshotData ¶
func DecodeSnapshot ¶
func DecodeSnapshot(data []byte) (*SnapshotData, error)
Click to show internal directories.
Click to hide internal directories.