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 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) (*Image, 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 ¶
StreamServer is the server API for Stream service.
type UnimplementedStreamServer ¶
type UnimplementedStreamServer struct { }
UnimplementedStreamServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.