Documentation ¶
Index ¶
- Variables
- func RegisterFileServer(s *server.Server, h FileServer)
- type FileClient
- type FileReq
- func (*FileReq) Descriptor() ([]byte, []int)
- func (m *FileReq) GetBody() []byte
- func (m *FileReq) GetFileName() string
- func (m *FileReq) GetFileSize() int64
- func (m *FileReq) Marshal() (dAtA []byte, err error)
- func (m *FileReq) MarshalTo(dAtA []byte) (int, error)
- func (m *FileReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FileReq) ProtoMessage()
- func (m *FileReq) Reset()
- func (m *FileReq) Size() (n int)
- func (m *FileReq) String() string
- func (m *FileReq) Unmarshal(dAtA []byte) error
- func (m *FileReq) XXX_DiscardUnknown()
- func (m *FileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileReq) XXX_Merge(src proto.Message)
- func (m *FileReq) XXX_Size() int
- func (m *FileReq) XXX_Unmarshal(b []byte) error
- type FileRsp
- func (*FileRsp) Descriptor() ([]byte, []int)
- func (m *FileRsp) GetCode() uint32
- func (m *FileRsp) GetMsg() string
- func (m *FileRsp) Marshal() (dAtA []byte, err error)
- func (m *FileRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *FileRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FileRsp) ProtoMessage()
- func (m *FileRsp) Reset()
- func (m *FileRsp) Size() (n int)
- func (m *FileRsp) String() string
- func (m *FileRsp) Unmarshal(dAtA []byte) error
- func (m *FileRsp) XXX_DiscardUnknown()
- func (m *FileRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileRsp) XXX_Merge(src proto.Message)
- func (m *FileRsp) XXX_Size() int
- func (m *FileRsp) XXX_Unmarshal(b []byte) error
- type FileServer
Constants ¶
This section is empty.
Variables ¶
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) GetFileName ¶
func (*FileReq) GetFileSize ¶
func (*FileReq) MarshalToSizedBuffer ¶
func (*FileReq) ProtoMessage ¶
func (*FileReq) ProtoMessage()
func (*FileReq) XXX_DiscardUnknown ¶
func (m *FileReq) XXX_DiscardUnknown()
func (*FileReq) XXX_Marshal ¶
func (*FileReq) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*FileRsp) ProtoMessage ¶
func (*FileRsp) ProtoMessage()
func (*FileRsp) XXX_DiscardUnknown ¶
func (m *FileRsp) XXX_DiscardUnknown()
func (*FileRsp) XXX_Marshal ¶
func (*FileRsp) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.