packet

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthParcel        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParcel          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParcel = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type FileReq added in v1.0.7

type FileReq struct {
	FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	FileSize int64  `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
	Body     []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
}

func (*FileReq) Descriptor added in v1.0.7

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

func (*FileReq) GetBody added in v1.0.7

func (m *FileReq) GetBody() []byte

func (*FileReq) GetFileName added in v1.0.7

func (m *FileReq) GetFileName() string

func (*FileReq) GetFileSize added in v1.0.7

func (m *FileReq) GetFileSize() int64

func (*FileReq) Marshal added in v1.0.7

func (m *FileReq) Marshal() (dAtA []byte, err error)

func (*FileReq) MarshalTo added in v1.0.7

func (m *FileReq) MarshalTo(dAtA []byte) (int, error)

func (*FileReq) MarshalToSizedBuffer added in v1.0.7

func (m *FileReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileReq) ProtoMessage added in v1.0.7

func (*FileReq) ProtoMessage()

func (*FileReq) Reset added in v1.0.7

func (m *FileReq) Reset()

func (*FileReq) Size added in v1.0.7

func (m *FileReq) Size() (n int)

func (*FileReq) String added in v1.0.7

func (m *FileReq) String() string

func (*FileReq) Unmarshal added in v1.0.7

func (m *FileReq) Unmarshal(dAtA []byte) error

func (*FileReq) XXX_DiscardUnknown added in v1.0.7

func (m *FileReq) XXX_DiscardUnknown()

func (*FileReq) XXX_Marshal added in v1.0.7

func (m *FileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileReq) XXX_Merge added in v1.0.7

func (m *FileReq) XXX_Merge(src proto.Message)

func (*FileReq) XXX_Size added in v1.0.7

func (m *FileReq) XXX_Size() int

func (*FileReq) XXX_Unmarshal added in v1.0.7

func (m *FileReq) XXX_Unmarshal(b []byte) error

type FileRsp added in v1.0.7

type FileRsp struct {
	Code int32             `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data map[string]string `` /* 149-byte string literal not displayed */
}

func (*FileRsp) Descriptor added in v1.0.7

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

func (*FileRsp) GetCode added in v1.0.7

func (m *FileRsp) GetCode() int32

func (*FileRsp) GetData added in v1.0.7

func (m *FileRsp) GetData() map[string]string

func (*FileRsp) GetMsg added in v1.0.7

func (m *FileRsp) GetMsg() string

func (*FileRsp) Marshal added in v1.0.7

func (m *FileRsp) Marshal() (dAtA []byte, err error)

func (*FileRsp) MarshalTo added in v1.0.7

func (m *FileRsp) MarshalTo(dAtA []byte) (int, error)

func (*FileRsp) MarshalToSizedBuffer added in v1.0.7

func (m *FileRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileRsp) ProtoMessage added in v1.0.7

func (*FileRsp) ProtoMessage()

func (*FileRsp) Reset added in v1.0.7

func (m *FileRsp) Reset()

func (*FileRsp) Size added in v1.0.7

func (m *FileRsp) Size() (n int)

func (*FileRsp) String added in v1.0.7

func (m *FileRsp) String() string

func (*FileRsp) Unmarshal added in v1.0.7

func (m *FileRsp) Unmarshal(dAtA []byte) error

func (*FileRsp) XXX_DiscardUnknown added in v1.0.7

func (m *FileRsp) XXX_DiscardUnknown()

func (*FileRsp) XXX_Marshal added in v1.0.7

func (m *FileRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileRsp) XXX_Merge added in v1.0.7

func (m *FileRsp) XXX_Merge(src proto.Message)

func (*FileRsp) XXX_Size added in v1.0.7

func (m *FileRsp) XXX_Size() int

func (*FileRsp) XXX_Unmarshal added in v1.0.7

func (m *FileRsp) XXX_Unmarshal(b []byte) error

type Packet

type Packet struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func (*Packet) Descriptor

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

func (*Packet) GetCode

func (m *Packet) GetCode() int32

func (*Packet) GetData

func (m *Packet) GetData() []byte

func (*Packet) GetMsg added in v1.0.7

func (m *Packet) GetMsg() string

func (*Packet) Marshal

func (m *Packet) Marshal() (dAtA []byte, err error)

func (*Packet) MarshalTo

func (m *Packet) MarshalTo(dAtA []byte) (int, error)

func (*Packet) MarshalToSizedBuffer

func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) Size

func (m *Packet) Size() (n int)

func (*Packet) String

func (m *Packet) String() string

func (*Packet) Unmarshal

func (m *Packet) Unmarshal(dAtA []byte) error

func (*Packet) XXX_DiscardUnknown

func (m *Packet) XXX_DiscardUnknown()

func (*Packet) XXX_Marshal

func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Packet) XXX_Merge

func (m *Packet) XXX_Merge(src proto.Message)

func (*Packet) XXX_Size

func (m *Packet) XXX_Size() int

func (*Packet) XXX_Unmarshal

func (m *Packet) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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