Documentation ¶
Index ¶
- func RegisterUploadServiceServer(s *grpc.Server, srv UploadServiceServer)
- type UnimplementedUploadServiceServer
- type UploadReq
- func (*UploadReq) Descriptor() ([]byte, []int)
- func (m *UploadReq) GetBucket() string
- func (m *UploadReq) GetContent() []byte
- func (m *UploadReq) GetFileName() string
- func (*UploadReq) ProtoMessage()
- func (m *UploadReq) Reset()
- func (m *UploadReq) String() string
- func (m *UploadReq) XXX_DiscardUnknown()
- func (m *UploadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UploadReq) XXX_Merge(src proto.Message)
- func (m *UploadReq) XXX_Size() int
- func (m *UploadReq) XXX_Unmarshal(b []byte) error
- type UploadResp
- func (*UploadResp) Descriptor() ([]byte, []int)
- func (m *UploadResp) GetUrl() string
- func (*UploadResp) ProtoMessage()
- func (m *UploadResp) Reset()
- func (m *UploadResp) String() string
- func (m *UploadResp) XXX_DiscardUnknown()
- func (m *UploadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UploadResp) XXX_Merge(src proto.Message)
- func (m *UploadResp) XXX_Size() int
- func (m *UploadResp) XXX_Unmarshal(b []byte) error
- type UploadServiceClient
- type UploadServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUploadServiceServer ¶
func RegisterUploadServiceServer(s *grpc.Server, srv UploadServiceServer)
Types ¶
type UnimplementedUploadServiceServer ¶
type UnimplementedUploadServiceServer struct { }
UnimplementedUploadServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUploadServiceServer) UploadFile ¶
func (*UnimplementedUploadServiceServer) UploadFile(ctx context.Context, req *UploadReq) (*UploadResp, error)
type UploadReq ¶
type UploadReq struct { FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"` Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UploadReq) Descriptor ¶
func (*UploadReq) GetContent ¶
func (*UploadReq) GetFileName ¶
func (*UploadReq) ProtoMessage ¶
func (*UploadReq) ProtoMessage()
func (*UploadReq) XXX_DiscardUnknown ¶
func (m *UploadReq) XXX_DiscardUnknown()
func (*UploadReq) XXX_Marshal ¶
func (*UploadReq) XXX_Unmarshal ¶
type UploadResp ¶
type UploadResp struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UploadResp) Descriptor ¶
func (*UploadResp) Descriptor() ([]byte, []int)
func (*UploadResp) GetUrl ¶
func (m *UploadResp) GetUrl() string
func (*UploadResp) ProtoMessage ¶
func (*UploadResp) ProtoMessage()
func (*UploadResp) Reset ¶
func (m *UploadResp) Reset()
func (*UploadResp) String ¶
func (m *UploadResp) String() string
func (*UploadResp) XXX_DiscardUnknown ¶
func (m *UploadResp) XXX_DiscardUnknown()
func (*UploadResp) XXX_Marshal ¶
func (m *UploadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UploadResp) XXX_Merge ¶
func (m *UploadResp) XXX_Merge(src proto.Message)
func (*UploadResp) XXX_Size ¶
func (m *UploadResp) XXX_Size() int
func (*UploadResp) XXX_Unmarshal ¶
func (m *UploadResp) XXX_Unmarshal(b []byte) error
type UploadServiceClient ¶
type UploadServiceClient interface {
UploadFile(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (*UploadResp, error)
}
UploadServiceClient is the client API for UploadService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUploadServiceClient ¶
func NewUploadServiceClient(cc *grpc.ClientConn) UploadServiceClient
type UploadServiceServer ¶
type UploadServiceServer interface {
UploadFile(context.Context, *UploadReq) (*UploadResp, error)
}
UploadServiceServer is the server API for UploadService service.
Click to show internal directories.
Click to hide internal directories.