Documentation
¶
Index ¶
- Variables
- type CacheMeta
- func (*CacheMeta) Descriptor() ([]byte, []int)deprecated
- func (x *CacheMeta) GetDevice() uint64
- func (x *CacheMeta) GetPath() string
- func (x *CacheMeta) GetTimeNs() int64
- func (*CacheMeta) ProtoMessage()
- func (x *CacheMeta) ProtoReflect() protoreflect.Message
- func (x *CacheMeta) Reset()
- func (x *CacheMeta) String() string
- func (cm *CacheMeta) Time() time.Time
- type Command
- type Command_Op
- type DbHeader
- type Dir
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetDirIndex() int64
- func (x *File) GetHash() []byte
- func (x *File) GetName() string
- func (x *File) GetSize() int64
- func (x *File) GetTimeNs() int64
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Command_Op_name = map[int32]string{ 0: "NONE", 1: "GETDB", 2: "GETFILE", } Command_Op_value = map[string]int32{ "NONE": 0, "GETDB": 1, "GETFILE": 2, } )
Enum value maps for Command_Op.
View Source
var File_records_records_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CacheMeta ¶
type CacheMeta struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` TimeNs int64 `protobuf:"fixed64,2,opt,name=timeNs,proto3" json:"timeNs,omitempty"` Device uint64 `protobuf:"varint,3,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func NewCacheMeta ¶
func (*CacheMeta) Descriptor
deprecated
func (*CacheMeta) ProtoMessage ¶
func (*CacheMeta) ProtoMessage()
func (*CacheMeta) ProtoReflect ¶
func (x *CacheMeta) ProtoReflect() protoreflect.Message
type Command ¶
type Command struct { Op Command_Op `protobuf:"varint,1,opt,name=op,proto3,enum=Command_Op" json:"op,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*Command) Descriptor
deprecated
func (*Command) GetOp ¶
func (x *Command) GetOp() Command_Op
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type Command_Op ¶
type Command_Op int32
const ( Command_NONE Command_Op = 0 Command_GETDB Command_Op = 1 Command_GETFILE Command_Op = 2 )
func (Command_Op) Descriptor ¶
func (Command_Op) Descriptor() protoreflect.EnumDescriptor
func (Command_Op) Enum ¶
func (x Command_Op) Enum() *Command_Op
func (Command_Op) EnumDescriptor
deprecated
func (Command_Op) EnumDescriptor() ([]byte, []int)
Deprecated: Use Command_Op.Descriptor instead.
func (Command_Op) Number ¶
func (x Command_Op) Number() protoreflect.EnumNumber
func (Command_Op) String ¶
func (x Command_Op) String() string
func (Command_Op) Type ¶
func (Command_Op) Type() protoreflect.EnumType
type DbHeader ¶
type DbHeader struct { DirCount int64 `protobuf:"varint,1,opt,name=dirCount,proto3" json:"dirCount,omitempty"` FileCount int64 `protobuf:"varint,2,opt,name=fileCount,proto3" json:"fileCount,omitempty"` // contains filtered or unexported fields }
func (*DbHeader) Descriptor
deprecated
func (*DbHeader) GetDirCount ¶
func (*DbHeader) GetFileCount ¶
func (*DbHeader) ProtoMessage ¶
func (*DbHeader) ProtoMessage()
func (*DbHeader) ProtoReflect ¶
func (x *DbHeader) ProtoReflect() protoreflect.Message
type Dir ¶
type Dir struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` TimeNs int64 `protobuf:"fixed64,2,opt,name=timeNs,proto3" json:"timeNs,omitempty"` // contains filtered or unexported fields }
func (*Dir) Descriptor
deprecated
func (*Dir) ProtoMessage ¶
func (*Dir) ProtoMessage()
func (*Dir) ProtoReflect ¶
func (x *Dir) ProtoReflect() protoreflect.Message
type File ¶
type File struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DirIndex int64 `protobuf:"varint,2,opt,name=dirIndex,proto3" json:"dirIndex,omitempty"` Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` TimeNs int64 `protobuf:"fixed64,4,opt,name=timeNs,proto3" json:"timeNs,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetDirIndex ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.