Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterStreamServer(s *grpc.Server, srv StreamServer)
- type Image
- func (*Image) Descriptor() ([]byte, []int)
- func (m *Image) GetHeight() int64
- func (m *Image) GetImageData() []byte
- func (m *Image) GetWidth() int64
- func (m *Image) Marshal() (dAtA []byte, err error)
- func (m *Image) MarshalTo(dAtA []byte) (int, error)
- func (m *Image) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Image) ProtoMessage()
- func (m *Image) Reset()
- func (m *Image) Size() (n int)
- func (m *Image) String() string
- func (m *Image) Unmarshal(dAtA []byte) error
- func (m *Image) XXX_DiscardUnknown()
- func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Image) XXX_Merge(src proto.Message)
- func (m *Image) XXX_Size() int
- func (m *Image) XXX_Unmarshal(b []byte) error
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) Marshal() (dAtA []byte, err error)
- func (m *Input) MarshalTo(dAtA []byte) (int, error)
- func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) Size() (n int)
- func (m *Input) String() string
- func (m *Input) Unmarshal(dAtA []byte) error
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
- type Server
- type StreamClient
- type StreamServer
- type Stream_GetImageClient
- type Stream_GetImageServer
- type UnimplementedStreamServer
Constants ¶
View Source
const ( // ScreenWidth of the remarkable 2 ScreenWidth = 1872 // ScreenHeight of the remarkable 2 ScreenHeight = 1404 )
Variables ¶
Functions ¶
func RegisterStreamServer ¶
func RegisterStreamServer(s *grpc.Server, srv StreamServer)
Types ¶
type Image ¶
type Image struct { Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` ImageData []byte `protobuf:"bytes,4,opt,name=image_data,json=imageData,proto3" json:"image_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Image) Descriptor ¶
func (*Image) GetImageData ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) XXX_DiscardUnknown ¶
func (m *Image) XXX_DiscardUnknown()
func (*Image) XXX_Marshal ¶
func (*Image) XXX_Unmarshal ¶
type Input ¶
type Input struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Input) Descriptor ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implementation
type StreamClient ¶
type StreamClient interface {
GetImage(ctx context.Context, in *Input, opts ...grpc.CallOption) (Stream_GetImageClient, error)
}
StreamClient is the client API for Stream service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStreamClient ¶
func NewStreamClient(cc *grpc.ClientConn) StreamClient
type StreamServer ¶
type StreamServer interface {
GetImage(*Input, Stream_GetImageServer) error
}
StreamServer is the server API for Stream service.
type Stream_GetImageClient ¶ added in v0.4.0
type Stream_GetImageClient interface { Recv() (*Image, error) grpc.ClientStream }
type Stream_GetImageServer ¶ added in v0.4.0
type Stream_GetImageServer interface { Send(*Image) error grpc.ServerStream }
type UnimplementedStreamServer ¶
type UnimplementedStreamServer struct { }
UnimplementedStreamServer can be embedded to have forward compatible implementations.
func (*UnimplementedStreamServer) GetImage ¶
func (*UnimplementedStreamServer) GetImage(req *Input, srv Stream_GetImageServer) error
Click to show internal directories.
Click to hide internal directories.