phello

package
v1.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPhello        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPhello          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPhello = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterFileServer

func RegisterFileServer(s *server.Server, h FileServer)

Types

type FileClient

type FileClient interface {
	Upload(c *context.Context, req *FileReq, opts ...invoke.InvokeOptions) (*FileRsp, error)
}

func NewFileClient

func NewFileClient(c *client.Client) FileClient

type FileReq

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

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

func (*FileReq) GetBody

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

func (*FileReq) GetFileName

func (m *FileReq) GetFileName() string

func (*FileReq) GetFileSize

func (m *FileReq) GetFileSize() int64

func (*FileReq) Marshal

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

func (*FileReq) MarshalTo

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

func (*FileReq) MarshalToSizedBuffer

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

func (*FileReq) ProtoMessage

func (*FileReq) ProtoMessage()

func (*FileReq) Reset

func (m *FileReq) Reset()

func (*FileReq) Size

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

func (*FileReq) String

func (m *FileReq) String() string

func (*FileReq) Unmarshal

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

func (*FileReq) XXX_DiscardUnknown

func (m *FileReq) XXX_DiscardUnknown()

func (*FileReq) XXX_Marshal

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

func (*FileReq) XXX_Merge

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

func (*FileReq) XXX_Size

func (m *FileReq) XXX_Size() int

func (*FileReq) XXX_Unmarshal

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

type FileRsp

type FileRsp struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*FileRsp) Descriptor

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

func (*FileRsp) GetCode

func (m *FileRsp) GetCode() uint32

func (*FileRsp) GetMsg

func (m *FileRsp) GetMsg() string

func (*FileRsp) Marshal

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

func (*FileRsp) MarshalTo

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

func (*FileRsp) MarshalToSizedBuffer

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

func (*FileRsp) ProtoMessage

func (*FileRsp) ProtoMessage()

func (*FileRsp) Reset

func (m *FileRsp) Reset()

func (*FileRsp) Size

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

func (*FileRsp) String

func (m *FileRsp) String() string

func (*FileRsp) Unmarshal

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

func (*FileRsp) XXX_DiscardUnknown

func (m *FileRsp) XXX_DiscardUnknown()

func (*FileRsp) XXX_Marshal

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

func (*FileRsp) XXX_Merge

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

func (*FileRsp) XXX_Size

func (m *FileRsp) XXX_Size() int

func (*FileRsp) XXX_Unmarshal

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

type FileServer

type FileServer interface {
	Upload(c *context.Context, req *FileReq, rsp *FileRsp) (err error)
}

FileServer is the server API for File server.

Jump to

Keyboard shortcuts

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