Documentation ¶
Index ¶
- Variables
- func RegisterUploadServer(s *grpc.Server, srv UploadServer)
- type BytesMessage
- func (*BytesMessage) Descriptor() ([]byte, []int)
- func (this *BytesMessage) Equal(that interface{}) bool
- func (m *BytesMessage) GetData() []byte
- func (this *BytesMessage) GoString() string
- func (m *BytesMessage) Marshal() (dAtA []byte, err error)
- func (m *BytesMessage) MarshalTo(dAtA []byte) (int, error)
- func (*BytesMessage) ProtoMessage()
- func (m *BytesMessage) Reset()
- func (m *BytesMessage) Size() (n int)
- func (this *BytesMessage) String() string
- func (m *BytesMessage) Unmarshal(dAtA []byte) error
- func (m *BytesMessage) XXX_DiscardUnknown()
- func (m *BytesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BytesMessage) XXX_Merge(src proto.Message)
- func (m *BytesMessage) XXX_Size() int
- func (m *BytesMessage) XXX_Unmarshal(b []byte) error
- type Upload
- type UploadClient
- type UploadServer
- type Upload_PullClient
- type Upload_PullServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthUpload = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUpload = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterUploadServer ¶
func RegisterUploadServer(s *grpc.Server, srv UploadServer)
Types ¶
type BytesMessage ¶
type BytesMessage struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
BytesMessage contains a chunk of byte data
func (*BytesMessage) Descriptor ¶
func (*BytesMessage) Descriptor() ([]byte, []int)
func (*BytesMessage) Equal ¶
func (this *BytesMessage) Equal(that interface{}) bool
func (*BytesMessage) GetData ¶
func (m *BytesMessage) GetData() []byte
func (*BytesMessage) GoString ¶
func (this *BytesMessage) GoString() string
func (*BytesMessage) Marshal ¶
func (m *BytesMessage) Marshal() (dAtA []byte, err error)
func (*BytesMessage) ProtoMessage ¶
func (*BytesMessage) ProtoMessage()
func (*BytesMessage) Reset ¶
func (m *BytesMessage) Reset()
func (*BytesMessage) Size ¶
func (m *BytesMessage) Size() (n int)
func (*BytesMessage) String ¶
func (this *BytesMessage) String() string
func (*BytesMessage) Unmarshal ¶
func (m *BytesMessage) Unmarshal(dAtA []byte) error
func (*BytesMessage) XXX_DiscardUnknown ¶
func (m *BytesMessage) XXX_DiscardUnknown()
func (*BytesMessage) XXX_Marshal ¶
func (m *BytesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BytesMessage) XXX_Merge ¶
func (dst *BytesMessage) XXX_Merge(src proto.Message)
func (*BytesMessage) XXX_Size ¶
func (m *BytesMessage) XXX_Size() int
func (*BytesMessage) XXX_Unmarshal ¶
func (m *BytesMessage) XXX_Unmarshal(b []byte) error
type UploadClient ¶
type UploadClient interface {
Pull(ctx context.Context, opts ...grpc.CallOption) (Upload_PullClient, error)
}
UploadClient is the client API for Upload service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUploadClient ¶
func NewUploadClient(cc *grpc.ClientConn) UploadClient
type UploadServer ¶
type UploadServer interface {
Pull(Upload_PullServer) error
}
UploadServer is the server API for Upload service.
type Upload_PullClient ¶
type Upload_PullClient interface { Send(*BytesMessage) error Recv() (*BytesMessage, error) grpc.ClientStream }
type Upload_PullServer ¶
type Upload_PullServer interface { Send(*BytesMessage) error Recv() (*BytesMessage, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.