records

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewCacheMeta(path string, device uint64) *CacheMeta

func (*CacheMeta) Descriptor deprecated

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

Deprecated: Use CacheMeta.ProtoReflect.Descriptor instead.

func (*CacheMeta) GetDevice

func (x *CacheMeta) GetDevice() uint64

func (*CacheMeta) GetPath

func (x *CacheMeta) GetPath() string

func (*CacheMeta) GetTimeNs

func (x *CacheMeta) GetTimeNs() int64

func (*CacheMeta) ProtoMessage

func (*CacheMeta) ProtoMessage()

func (*CacheMeta) ProtoReflect

func (x *CacheMeta) ProtoReflect() protoreflect.Message

func (*CacheMeta) Reset

func (x *CacheMeta) Reset()

func (*CacheMeta) String

func (x *CacheMeta) String() string

func (*CacheMeta) Time

func (cm *CacheMeta) Time() time.Time

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) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetHash

func (x *Command) GetHash() []byte

func (*Command) GetOp

func (x *Command) GetOp() Command_Op

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use DbHeader.ProtoReflect.Descriptor instead.

func (*DbHeader) GetDirCount

func (x *DbHeader) GetDirCount() int64

func (*DbHeader) GetFileCount

func (x *DbHeader) GetFileCount() int64

func (*DbHeader) ProtoMessage

func (*DbHeader) ProtoMessage()

func (*DbHeader) ProtoReflect

func (x *DbHeader) ProtoReflect() protoreflect.Message

func (*DbHeader) Reset

func (x *DbHeader) Reset()

func (*DbHeader) String

func (x *DbHeader) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Dir.ProtoReflect.Descriptor instead.

func (*Dir) GetPath

func (x *Dir) GetPath() string

func (*Dir) GetTimeNs

func (x *Dir) GetTimeNs() int64

func (*Dir) ProtoMessage

func (*Dir) ProtoMessage()

func (*Dir) ProtoReflect

func (x *Dir) ProtoReflect() protoreflect.Message

func (*Dir) Reset

func (x *Dir) Reset()

func (*Dir) String

func (x *Dir) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetDirIndex

func (x *File) GetDirIndex() int64

func (*File) GetHash

func (x *File) GetHash() []byte

func (*File) GetName

func (x *File) GetName() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) GetTimeNs

func (x *File) GetTimeNs() int64

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

Jump to

Keyboard shortcuts

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