Documentation ¶
Index ¶
- Variables
- func RegisterScreenServerServer(s *grpc.Server, srv ScreenServerServer)
- type Background
- func (*Background) Descriptor() ([]byte, []int)
- func (m *Background) GetColor() string
- func (*Background) ProtoMessage()
- func (m *Background) Reset()
- func (m *Background) String() string
- func (m *Background) XXX_DiscardUnknown()
- func (m *Background) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Background) XXX_Merge(src proto.Message)
- func (m *Background) XXX_Size() int
- func (m *Background) XXX_Unmarshal(b []byte) error
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetCommandtype() string
- func (m *Command) GetCommandvalue() string
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type IncomingImageUpate
- type Line
- func (*Line) Descriptor() ([]byte, []int)
- func (m *Line) GetLineColor() string
- func (m *Line) GetLineType() string
- func (m *Line) GetLineValue() string
- func (*Line) ProtoMessage()
- func (m *Line) Reset()
- func (m *Line) String() string
- func (m *Line) XXX_DiscardUnknown()
- func (m *Line) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Line) XXX_Merge(src proto.Message)
- func (m *Line) XXX_Size() int
- func (m *Line) XXX_Unmarshal(b []byte) error
- type ScreenImage
- func (*ScreenImage) Descriptor() ([]byte, []int)
- func (m *ScreenImage) GetFrame() int64
- func (m *ScreenImage) GetHeight() int32
- func (m *ScreenImage) GetImageData() []byte
- func (m *ScreenImage) GetWidth() int32
- func (*ScreenImage) ProtoMessage()
- func (m *ScreenImage) Reset()
- func (m *ScreenImage) String() string
- func (m *ScreenImage) XXX_DiscardUnknown()
- func (m *ScreenImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ScreenImage) XXX_Merge(src proto.Message)
- func (m *ScreenImage) XXX_Size() int
- func (m *ScreenImage) XXX_Unmarshal(b []byte) error
- type ScreenRequest
- func (*ScreenRequest) Descriptor() ([]byte, []int)
- func (m *ScreenRequest) GetBackground() *Background
- func (m *ScreenRequest) GetLine1() *Line
- func (m *ScreenRequest) GetLine2() *Line
- func (m *ScreenRequest) GetLine3() *Line
- func (m *ScreenRequest) GetLine4() *Line
- func (m *ScreenRequest) GetLine5() *Line
- func (m *ScreenRequest) GetTimeout() *Timeout
- func (m *ScreenRequest) GetTouches() []*Touch
- func (*ScreenRequest) ProtoMessage()
- func (m *ScreenRequest) Reset()
- func (m *ScreenRequest) String() string
- func (m *ScreenRequest) XXX_DiscardUnknown()
- func (m *ScreenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ScreenRequest) XXX_Merge(src proto.Message)
- func (m *ScreenRequest) XXX_Size() int
- func (m *ScreenRequest) XXX_Unmarshal(b []byte) error
- type ScreenResponse
- func (*ScreenResponse) Descriptor() ([]byte, []int)
- func (m *ScreenResponse) GetMessage() string
- func (m *ScreenResponse) GetStatus() string
- func (*ScreenResponse) ProtoMessage()
- func (m *ScreenResponse) Reset()
- func (m *ScreenResponse) String() string
- func (m *ScreenResponse) XXX_DiscardUnknown()
- func (m *ScreenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ScreenResponse) XXX_Merge(src proto.Message)
- func (m *ScreenResponse) XXX_Size() int
- func (m *ScreenResponse) XXX_Unmarshal(b []byte) error
- type ScreenServerClient
- type ScreenServerServer
- type Server
- func (s *Server) GetImage() *image.Image
- func (s *Server) GetScreen() *ScreenRequest
- func (s *Server) HasImage() bool
- func (s *Server) NumScreens() int
- func (s *Server) RemoveImage()
- func (s *Server) SendImage(ctx context.Context, in *ScreenImage) (*ScreenResponse, error)
- func (s *Server) SendScreen(ctx context.Context, in *ScreenRequest) (*ScreenResponse, error)
- type Timeout
- func (*Timeout) Descriptor() ([]byte, []int)
- func (m *Timeout) GetLength() int32
- func (m *Timeout) GetReturnscreen() string
- func (m *Timeout) GetShowtimeout() int32
- func (*Timeout) ProtoMessage()
- func (m *Timeout) Reset()
- func (m *Timeout) String() string
- func (m *Timeout) XXX_DiscardUnknown()
- func (m *Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Timeout) XXX_Merge(src proto.Message)
- func (m *Timeout) XXX_Size() int
- func (m *Timeout) XXX_Unmarshal(b []byte) error
- type Touch
- func (*Touch) Descriptor() ([]byte, []int)
- func (m *Touch) GetCommand() *Command
- func (m *Touch) GetHeight() int32
- func (m *Touch) GetWidth() int32
- func (m *Touch) GetX() int32
- func (m *Touch) GetY() int32
- func (*Touch) ProtoMessage()
- func (m *Touch) Reset()
- func (m *Touch) String() string
- func (m *Touch) XXX_DiscardUnknown()
- func (m *Touch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Touch) XXX_Merge(src proto.Message)
- func (m *Touch) XXX_Size() int
- func (m *Touch) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var IncomingScreens []ScreenRequest
Functions ¶
func RegisterScreenServerServer ¶
func RegisterScreenServerServer(s *grpc.Server, srv ScreenServerServer)
Types ¶
type Background ¶
type Background struct { Color string `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Background) Descriptor ¶
func (*Background) Descriptor() ([]byte, []int)
func (*Background) GetColor ¶
func (m *Background) GetColor() string
func (*Background) ProtoMessage ¶
func (*Background) ProtoMessage()
func (*Background) Reset ¶
func (m *Background) Reset()
func (*Background) String ¶
func (m *Background) String() string
func (*Background) XXX_DiscardUnknown ¶
func (m *Background) XXX_DiscardUnknown()
func (*Background) XXX_Marshal ¶
func (m *Background) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Background) XXX_Merge ¶
func (dst *Background) XXX_Merge(src proto.Message)
func (*Background) XXX_Size ¶
func (m *Background) XXX_Size() int
func (*Background) XXX_Unmarshal ¶
func (m *Background) XXX_Unmarshal(b []byte) error
type Command ¶
type Command struct { Commandtype string `protobuf:"bytes,1,opt,name=commandtype,proto3" json:"commandtype,omitempty"` Commandvalue string `protobuf:"bytes,2,opt,name=commandvalue,proto3" json:"commandvalue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Command) Descriptor ¶
func (*Command) GetCommandtype ¶
func (*Command) GetCommandvalue ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
type IncomingImageUpate ¶
var IncomingImage IncomingImageUpate
type Line ¶
type Line struct { LineType string `protobuf:"bytes,1,opt,name=line_type,json=lineType,proto3" json:"line_type,omitempty"` LineValue string `protobuf:"bytes,2,opt,name=line_value,json=lineValue,proto3" json:"line_value,omitempty"` LineColor string `protobuf:"bytes,3,opt,name=line_color,json=lineColor,proto3" json:"line_color,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Line) Descriptor ¶
func (*Line) GetLineColor ¶
func (*Line) GetLineType ¶
func (*Line) GetLineValue ¶
func (*Line) ProtoMessage ¶
func (*Line) ProtoMessage()
func (*Line) XXX_DiscardUnknown ¶
func (m *Line) XXX_DiscardUnknown()
func (*Line) XXX_Unmarshal ¶
type ScreenImage ¶
type ScreenImage struct { ImageData []byte `protobuf:"bytes,1,opt,name=image_data,json=imageData,proto3" json:"image_data,omitempty"` Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` Frame int64 `protobuf:"varint,4,opt,name=frame,proto3" json:"frame,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScreenImage) Descriptor ¶
func (*ScreenImage) Descriptor() ([]byte, []int)
func (*ScreenImage) GetFrame ¶
func (m *ScreenImage) GetFrame() int64
func (*ScreenImage) GetHeight ¶
func (m *ScreenImage) GetHeight() int32
func (*ScreenImage) GetImageData ¶
func (m *ScreenImage) GetImageData() []byte
func (*ScreenImage) GetWidth ¶
func (m *ScreenImage) GetWidth() int32
func (*ScreenImage) ProtoMessage ¶
func (*ScreenImage) ProtoMessage()
func (*ScreenImage) Reset ¶
func (m *ScreenImage) Reset()
func (*ScreenImage) String ¶
func (m *ScreenImage) String() string
func (*ScreenImage) XXX_DiscardUnknown ¶
func (m *ScreenImage) XXX_DiscardUnknown()
func (*ScreenImage) XXX_Marshal ¶
func (m *ScreenImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScreenImage) XXX_Merge ¶
func (dst *ScreenImage) XXX_Merge(src proto.Message)
func (*ScreenImage) XXX_Size ¶
func (m *ScreenImage) XXX_Size() int
func (*ScreenImage) XXX_Unmarshal ¶
func (m *ScreenImage) XXX_Unmarshal(b []byte) error
type ScreenRequest ¶
type ScreenRequest struct { Line1 *Line `protobuf:"bytes,1,opt,name=line1,proto3" json:"line1,omitempty"` Line2 *Line `protobuf:"bytes,2,opt,name=line2,proto3" json:"line2,omitempty"` Line3 *Line `protobuf:"bytes,3,opt,name=line3,proto3" json:"line3,omitempty"` Line4 *Line `protobuf:"bytes,4,opt,name=line4,proto3" json:"line4,omitempty"` Line5 *Line `protobuf:"bytes,5,opt,name=line5,proto3" json:"line5,omitempty"` Timeout *Timeout `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"` Touches []*Touch `protobuf:"bytes,7,rep,name=touches,proto3" json:"touches,omitempty"` Background *Background `protobuf:"bytes,8,opt,name=background,proto3" json:"background,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScreenRequest) Descriptor ¶
func (*ScreenRequest) Descriptor() ([]byte, []int)
func (*ScreenRequest) GetBackground ¶
func (m *ScreenRequest) GetBackground() *Background
func (*ScreenRequest) GetLine1 ¶
func (m *ScreenRequest) GetLine1() *Line
func (*ScreenRequest) GetLine2 ¶
func (m *ScreenRequest) GetLine2() *Line
func (*ScreenRequest) GetLine3 ¶
func (m *ScreenRequest) GetLine3() *Line
func (*ScreenRequest) GetLine4 ¶
func (m *ScreenRequest) GetLine4() *Line
func (*ScreenRequest) GetLine5 ¶
func (m *ScreenRequest) GetLine5() *Line
func (*ScreenRequest) GetTimeout ¶
func (m *ScreenRequest) GetTimeout() *Timeout
func (*ScreenRequest) GetTouches ¶
func (m *ScreenRequest) GetTouches() []*Touch
func (*ScreenRequest) ProtoMessage ¶
func (*ScreenRequest) ProtoMessage()
func (*ScreenRequest) Reset ¶
func (m *ScreenRequest) Reset()
func (*ScreenRequest) String ¶
func (m *ScreenRequest) String() string
func (*ScreenRequest) XXX_DiscardUnknown ¶
func (m *ScreenRequest) XXX_DiscardUnknown()
func (*ScreenRequest) XXX_Marshal ¶
func (m *ScreenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScreenRequest) XXX_Merge ¶
func (dst *ScreenRequest) XXX_Merge(src proto.Message)
func (*ScreenRequest) XXX_Size ¶
func (m *ScreenRequest) XXX_Size() int
func (*ScreenRequest) XXX_Unmarshal ¶
func (m *ScreenRequest) XXX_Unmarshal(b []byte) error
type ScreenResponse ¶
type ScreenResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScreenResponse) Descriptor ¶
func (*ScreenResponse) Descriptor() ([]byte, []int)
func (*ScreenResponse) GetMessage ¶
func (m *ScreenResponse) GetMessage() string
func (*ScreenResponse) GetStatus ¶
func (m *ScreenResponse) GetStatus() string
func (*ScreenResponse) ProtoMessage ¶
func (*ScreenResponse) ProtoMessage()
func (*ScreenResponse) Reset ¶
func (m *ScreenResponse) Reset()
func (*ScreenResponse) String ¶
func (m *ScreenResponse) String() string
func (*ScreenResponse) XXX_DiscardUnknown ¶
func (m *ScreenResponse) XXX_DiscardUnknown()
func (*ScreenResponse) XXX_Marshal ¶
func (m *ScreenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScreenResponse) XXX_Merge ¶
func (dst *ScreenResponse) XXX_Merge(src proto.Message)
func (*ScreenResponse) XXX_Size ¶
func (m *ScreenResponse) XXX_Size() int
func (*ScreenResponse) XXX_Unmarshal ¶
func (m *ScreenResponse) XXX_Unmarshal(b []byte) error
type ScreenServerClient ¶
type ScreenServerClient interface { SendScreen(ctx context.Context, in *ScreenRequest, opts ...grpc.CallOption) (*ScreenResponse, error) SendImage(ctx context.Context, in *ScreenImage, opts ...grpc.CallOption) (*ScreenResponse, error) }
ScreenServerClient is the client API for ScreenServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewScreenServerClient ¶
func NewScreenServerClient(cc *grpc.ClientConn) ScreenServerClient
type ScreenServerServer ¶
type ScreenServerServer interface { SendScreen(context.Context, *ScreenRequest) (*ScreenResponse, error) SendImage(context.Context, *ScreenImage) (*ScreenResponse, error) }
ScreenServerServer is the server API for ScreenServer service.
type Server ¶
type Server struct{}
func (*Server) GetScreen ¶
func (s *Server) GetScreen() *ScreenRequest
func (*Server) NumScreens ¶
func (*Server) RemoveImage ¶
func (s *Server) RemoveImage()
func (*Server) SendImage ¶
func (s *Server) SendImage(ctx context.Context, in *ScreenImage) (*ScreenResponse, error)
func (*Server) SendScreen ¶
func (s *Server) SendScreen(ctx context.Context, in *ScreenRequest) (*ScreenResponse, error)
type Timeout ¶
type Timeout struct { Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` Showtimeout int32 `protobuf:"varint,2,opt,name=showtimeout,proto3" json:"showtimeout,omitempty"` Returnscreen string `protobuf:"bytes,3,opt,name=returnscreen,proto3" json:"returnscreen,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Timeout) Descriptor ¶
func (*Timeout) GetReturnscreen ¶
func (*Timeout) GetShowtimeout ¶
func (*Timeout) ProtoMessage ¶
func (*Timeout) ProtoMessage()
func (*Timeout) XXX_DiscardUnknown ¶
func (m *Timeout) XXX_DiscardUnknown()
func (*Timeout) XXX_Marshal ¶
func (*Timeout) XXX_Unmarshal ¶
type Touch ¶
type Touch struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` Command *Command `protobuf:"bytes,5,opt,name=command,proto3" json:"command,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Touch) Descriptor ¶
func (*Touch) GetCommand ¶
func (*Touch) ProtoMessage ¶
func (*Touch) ProtoMessage()
func (*Touch) XXX_DiscardUnknown ¶
func (m *Touch) XXX_DiscardUnknown()
func (*Touch) XXX_Marshal ¶
func (*Touch) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.