model

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderData_Type_name = map[int32]string{
		0: "NORMAL",
		1: "ACK",
		2: "ACKR",
	}
	HeaderData_Type_value = map[string]int32{
		"NORMAL": 0,
		"ACK":    1,
		"ACKR":   2,
	}
)

Enum value maps for HeaderData_Type.

View Source
var File_network_model_network_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HeaderData

type HeaderData struct {
	Type          HeaderData_Type `protobuf:"varint,1,opt,name=type,proto3,enum=model.HeaderData_Type" json:"type,omitempty"`
	Id            string          `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	ContentType   string          `protobuf:"bytes,3,opt,name=contentType,proto3" json:"contentType,omitempty"`
	ContentLength uint32          `protobuf:"varint,4,opt,name=contentLength,proto3" json:"contentLength,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderData) Descriptor deprecated

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

Deprecated: Use HeaderData.ProtoReflect.Descriptor instead.

func (*HeaderData) GetContentLength

func (x *HeaderData) GetContentLength() uint32

func (*HeaderData) GetContentType

func (x *HeaderData) GetContentType() string

func (*HeaderData) GetId

func (x *HeaderData) GetId() string

func (*HeaderData) GetType

func (x *HeaderData) GetType() HeaderData_Type

func (*HeaderData) ProtoMessage

func (*HeaderData) ProtoMessage()

func (*HeaderData) ProtoReflect

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

func (*HeaderData) Reset

func (x *HeaderData) Reset()

func (*HeaderData) String

func (x *HeaderData) String() string

type HeaderData_Type

type HeaderData_Type int32
const (
	HeaderData_NORMAL HeaderData_Type = 0
	HeaderData_ACK    HeaderData_Type = 1
	HeaderData_ACKR   HeaderData_Type = 2
)

func (HeaderData_Type) Descriptor

func (HeaderData_Type) Enum

func (x HeaderData_Type) Enum() *HeaderData_Type

func (HeaderData_Type) EnumDescriptor deprecated

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

Deprecated: Use HeaderData_Type.Descriptor instead.

func (HeaderData_Type) Number

func (HeaderData_Type) String

func (x HeaderData_Type) String() string

func (HeaderData_Type) Type

Jump to

Keyboard shortcuts

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