proto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyTag = `result:EmPty`
	Forever  = 0
)

Variables

View Source
var (
	ErrEmpty = errors.New(`value is empty`)
	Empty    = []byte(EmptyTag)
)
View Source
var File_value_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CacheItem

type CacheItem struct {
	CreatedAt    int64  `protobuf:"varint,1,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt    int64  `protobuf:"varint,2,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	UpdatedCount int64  `protobuf:"varint,3,opt,name=updatedCount,proto3" json:"updatedCount,omitempty"`
	Data         []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CacheItem) Descriptor deprecated

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

Deprecated: Use CacheItem.ProtoReflect.Descriptor instead.

func (*CacheItem) EffectiveData

func (ci *CacheItem) EffectiveData() []byte

func (*CacheItem) Expired

func (ci *CacheItem) Expired(cur, timeoutSeconds int64) bool

func (*CacheItem) GetCreatedAt

func (x *CacheItem) GetCreatedAt() int64

func (*CacheItem) GetData

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

func (*CacheItem) GetUpdatedAt

func (x *CacheItem) GetUpdatedAt() int64

func (*CacheItem) GetUpdatedCount

func (x *CacheItem) GetUpdatedCount() int64

func (*CacheItem) IsEmpty

func (ci *CacheItem) IsEmpty() bool

func (*CacheItem) MapData

func (ci *CacheItem) MapData() (data base.MapData, err error)

func (*CacheItem) Marshal

func (ci *CacheItem) Marshal() ([]byte, error)

func (*CacheItem) ProtoMessage

func (*CacheItem) ProtoMessage()

func (*CacheItem) ProtoReflect

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

func (*CacheItem) Reset

func (x *CacheItem) Reset()

func (*CacheItem) SaveData

func (ci *CacheItem) SaveData(data []byte) *CacheItem

func (*CacheItem) String

func (x *CacheItem) String() string

func (*CacheItem) UnmarshalJsonData

func (ci *CacheItem) UnmarshalJsonData(out any) error

func (*CacheItem) UnmarshalProtoData

func (ci *CacheItem) UnmarshalProtoData(out proto.Message) error

Jump to

Keyboard shortcuts

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