packet

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 ApiReq added in v1.0.9

type ApiReq struct {
	Params map[string]string `` /* 153-byte string literal not displayed */
}

roc http GET request you must defined a struct as ApiReq

func (*ApiReq) Descriptor added in v1.0.9

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

func (*ApiReq) GetParams added in v1.0.9

func (m *ApiReq) GetParams() map[string]string

func (*ApiReq) Marshal added in v1.0.9

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

func (*ApiReq) MarshalTo added in v1.0.9

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

func (*ApiReq) MarshalToSizedBuffer added in v1.0.9

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

func (*ApiReq) ProtoMessage added in v1.0.9

func (*ApiReq) ProtoMessage()

func (*ApiReq) Reset added in v1.0.9

func (m *ApiReq) Reset()

func (*ApiReq) Size added in v1.0.9

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

func (*ApiReq) String added in v1.0.9

func (m *ApiReq) String() string

func (*ApiReq) Unmarshal added in v1.0.9

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

func (*ApiReq) XXX_DiscardUnknown added in v1.0.9

func (m *ApiReq) XXX_DiscardUnknown()

func (*ApiReq) XXX_Marshal added in v1.0.9

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

func (*ApiReq) XXX_Merge added in v1.0.9

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

func (*ApiReq) XXX_Size added in v1.0.9

func (m *ApiReq) XXX_Size() int

func (*ApiReq) XXX_Unmarshal added in v1.0.9

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

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"`
	Extra    string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"`
}

roc file upload request you must defined a struct as FileReq

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) GetExtra added in v1.1.2

func (m *FileReq) GetExtra() string

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 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"`
}

roc internal packet object

func (*Packet) Descriptor

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

func (*Packet) GetCode

func (m *Packet) GetCode() int32

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