proto

package
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgType_name = map[int32]string{
		0: "Common",
	}
	MsgType_value = map[string]int32{
		"Common": 0,
	}
)

Enum value maps for MsgType.

Functions

This section is empty.

Types

type Data

type Data struct {
	Id   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID
	Desc map[string][]byte ``                                                          /* 149-byte string literal not displayed */
	Data []byte            `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetData

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

func (*Data) GetDesc

func (x *Data) GetDesc() map[string][]byte

func (*Data) GetId

func (x *Data) GetId() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect added in v0.0.52

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Msg

type Msg struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID
	Type     MsgType           `protobuf:"varint,2,opt,name=type,proto3,enum=proto.MsgType" json:"type,omitempty"`
	Desc     map[string][]byte `` /* 149-byte string literal not displayed */
	DataList []*Data           `protobuf:"bytes,4,rep,name=dataList,proto3" json:"dataList,omitempty"`
	// contains filtered or unexported fields
}

func (*Msg) Descriptor deprecated

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetDataList

func (x *Msg) GetDataList() []*Data

func (*Msg) GetDesc

func (x *Msg) GetDesc() map[string][]byte

func (*Msg) GetId

func (x *Msg) GetId() string

func (*Msg) GetType

func (x *Msg) GetType() MsgType

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect added in v0.0.52

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

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

type MsgType

type MsgType int32
const (
	MsgType_Common MsgType = 0 //common msg
)

func (MsgType) Descriptor added in v0.0.52

func (MsgType) Descriptor() protoreflect.EnumDescriptor

func (MsgType) Enum added in v0.0.52

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor deprecated

func (MsgType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MsgType.Descriptor instead.

func (MsgType) Number added in v0.0.52

func (x MsgType) Number() protoreflect.EnumNumber

func (MsgType) String

func (x MsgType) String() string

func (MsgType) Type added in v0.0.52

func (MsgType) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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