cache

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_cache_cache_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Item

type Item struct {
	Data      []byte     `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	Namespace *Namespace `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetData

func (x *Item) GetData() []byte

func (*Item) GetNamespace

func (x *Item) GetNamespace() *Namespace

func (*Item) Marshal added in v0.0.2

func (i *Item) Marshal() ([]byte, error)

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

func (*Item) Unmarshal added in v0.0.2

func (i *Item) Unmarshal(b []byte) error

type Namespace

type Namespace struct {
	Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Ver uint64 `protobuf:"varint,2,opt,name=Ver,proto3" json:"Ver,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetKey

func (x *Namespace) GetKey() string

func (*Namespace) GetVer

func (x *Namespace) GetVer() uint64

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

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

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

Jump to

Keyboard shortcuts

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