sharding_protobuf_test

package
v2.14.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ShardingData

type ShardingData struct {
	TotalNum int32  `protobuf:"varint,1,opt,name=total_num,json=totalNum,proto3" json:"total_num,omitempty"`
	ShardNum int32  `protobuf:"varint,2,opt,name=shard_num,json=shardNum,proto3" json:"shard_num,omitempty"`
	Digest   []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	Data     []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ShardingData) Descriptor deprecated

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

Deprecated: Use ShardingData.ProtoReflect.Descriptor instead.

func (*ShardingData) GetData

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

func (*ShardingData) GetDigest

func (x *ShardingData) GetDigest() []byte

func (*ShardingData) GetShardNum

func (x *ShardingData) GetShardNum() int32

func (*ShardingData) GetTotalNum

func (x *ShardingData) GetTotalNum() int32

func (*ShardingData) ProtoMessage

func (*ShardingData) ProtoMessage()

func (*ShardingData) ProtoReflect

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

func (*ShardingData) Reset

func (x *ShardingData) Reset()

func (*ShardingData) String

func (x *ShardingData) String() string

type TestShardingModel

type TestShardingModel struct {
	Id        int64         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	BizData   []byte        `protobuf:"bytes,2,opt,name=biz_data,json=bizData,proto3" json:"biz_data,omitempty"`
	ShardData *ShardingData `protobuf:"bytes,255,opt,name=shard_data,json=shardData,proto3,oneof" json:"shard_data,omitempty"`
	// contains filtered or unexported fields
}

func (*TestShardingModel) Descriptor deprecated

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

Deprecated: Use TestShardingModel.ProtoReflect.Descriptor instead.

func (*TestShardingModel) GetBizData

func (x *TestShardingModel) GetBizData() []byte

func (*TestShardingModel) GetId

func (x *TestShardingModel) GetId() int64

func (*TestShardingModel) GetShardData

func (x *TestShardingModel) GetShardData() *ShardingData

func (*TestShardingModel) ProtoMessage

func (*TestShardingModel) ProtoMessage()

func (*TestShardingModel) ProtoReflect

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

func (*TestShardingModel) Reset

func (x *TestShardingModel) Reset()

func (*TestShardingModel) String

func (x *TestShardingModel) String() string

Jump to

Keyboard shortcuts

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