commonpb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	SubCode int32  `protobuf:"varint,2,opt,name=sub_code,json=subCode,proto3" json:"sub_code,omitempty"`
	Msg     string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) Error

func (x *Error) Error() string

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) GetSubCode

func (x *Error) GetSubCode() int32

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Value

type Value struct {
	Meta *ValueMeta `protobuf:"bytes,1,opt,name=Meta,proto3" json:"Meta,omitempty"`
	V    []byte     `protobuf:"bytes,2,opt,name=v,proto3" json:"v,omitempty"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetMeta

func (x *Value) GetMeta() *ValueMeta

func (*Value) GetV

func (x *Value) GetV() []byte

func (*Value) IsEmpty

func (x *Value) IsEmpty() bool

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

func (*Value) Validate

func (x *Value) Validate() error

type ValueCC

type ValueCC struct {
	Value           *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	MaxReadVersion  uint64 `protobuf:"varint,2,opt,name=max_read_version,json=maxReadVersion,proto3" json:"max_read_version,omitempty"`
	SnapshotVersion uint64 `protobuf:"varint,3,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"`
	// contains filtered or unexported fields
}

func (*ValueCC) Descriptor deprecated

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

Deprecated: Use ValueCC.ProtoReflect.Descriptor instead.

func (*ValueCC) GetMaxReadVersion

func (x *ValueCC) GetMaxReadVersion() uint64

func (*ValueCC) GetSnapshotVersion

func (x *ValueCC) GetSnapshotVersion() uint64

func (*ValueCC) GetValue

func (x *ValueCC) GetValue() *Value

func (*ValueCC) ProtoMessage

func (*ValueCC) ProtoMessage()

func (*ValueCC) ProtoReflect

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

func (*ValueCC) Reset

func (x *ValueCC) Reset()

func (*ValueCC) String

func (x *ValueCC) String() string

type ValueMeta

type ValueMeta struct {
	Version         uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	InternalVersion uint32 `protobuf:"varint,2,opt,name=internal_version,json=internalVersion,proto3" json:"internal_version,omitempty"`
	Flag            uint32 `protobuf:"varint,3,opt,name=flag,proto3" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

func (*ValueMeta) Descriptor deprecated

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

Deprecated: Use ValueMeta.ProtoReflect.Descriptor instead.

func (*ValueMeta) GetFlag

func (x *ValueMeta) GetFlag() uint32

func (*ValueMeta) GetFlagSafe

func (x *ValueMeta) GetFlagSafe() uint8

func (*ValueMeta) GetInternalVersion

func (x *ValueMeta) GetInternalVersion() uint32

func (*ValueMeta) GetVersion

func (x *ValueMeta) GetVersion() uint64

func (*ValueMeta) IsDirty

func (x *ValueMeta) IsDirty() bool

func (*ValueMeta) ProtoMessage

func (*ValueMeta) ProtoMessage()

func (*ValueMeta) ProtoReflect

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

func (*ValueMeta) Reset

func (x *ValueMeta) Reset()

func (*ValueMeta) SetFlag

func (x *ValueMeta) SetFlag(flag uint8) *ValueMeta

func (*ValueMeta) String

func (x *ValueMeta) String() string

Jump to

Keyboard shortcuts

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