screenservice

package
v0.0.0-...-8aee4df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Command) GetCommandtype

func (m *Command) GetCommandtype() string

func (*Command) GetCommandvalue

func (m *Command) GetCommandvalue() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (dst *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

type IncomingImageUpate

type IncomingImageUpate struct {
	Image *image.Image
	Lock  sync.Mutex
}
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) Descriptor() ([]byte, []int)

func (*Line) GetLineColor

func (m *Line) GetLineColor() string

func (*Line) GetLineType

func (m *Line) GetLineType() string

func (*Line) GetLineValue

func (m *Line) GetLineValue() string

func (*Line) ProtoMessage

func (*Line) ProtoMessage()

func (*Line) Reset

func (m *Line) Reset()

func (*Line) String

func (m *Line) String() string

func (*Line) XXX_DiscardUnknown

func (m *Line) XXX_DiscardUnknown()

func (*Line) XXX_Marshal

func (m *Line) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Line) XXX_Merge

func (dst *Line) XXX_Merge(src proto.Message)

func (*Line) XXX_Size

func (m *Line) XXX_Size() int

func (*Line) XXX_Unmarshal

func (m *Line) XXX_Unmarshal(b []byte) error

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) GetImage

func (s *Server) GetImage() *image.Image

func (*Server) GetScreen

func (s *Server) GetScreen() *ScreenRequest

func (*Server) HasImage

func (s *Server) HasImage() bool

func (*Server) NumScreens

func (s *Server) NumScreens() int

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) Descriptor() ([]byte, []int)

func (*Timeout) GetLength

func (m *Timeout) GetLength() int32

func (*Timeout) GetReturnscreen

func (m *Timeout) GetReturnscreen() string

func (*Timeout) GetShowtimeout

func (m *Timeout) GetShowtimeout() int32

func (*Timeout) ProtoMessage

func (*Timeout) ProtoMessage()

func (*Timeout) Reset

func (m *Timeout) Reset()

func (*Timeout) String

func (m *Timeout) String() string

func (*Timeout) XXX_DiscardUnknown

func (m *Timeout) XXX_DiscardUnknown()

func (*Timeout) XXX_Marshal

func (m *Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Timeout) XXX_Merge

func (dst *Timeout) XXX_Merge(src proto.Message)

func (*Timeout) XXX_Size

func (m *Timeout) XXX_Size() int

func (*Timeout) XXX_Unmarshal

func (m *Timeout) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Touch) GetCommand

func (m *Touch) GetCommand() *Command

func (*Touch) GetHeight

func (m *Touch) GetHeight() int32

func (*Touch) GetWidth

func (m *Touch) GetWidth() int32

func (*Touch) GetX

func (m *Touch) GetX() int32

func (*Touch) GetY

func (m *Touch) GetY() int32

func (*Touch) ProtoMessage

func (*Touch) ProtoMessage()

func (*Touch) Reset

func (m *Touch) Reset()

func (*Touch) String

func (m *Touch) String() string

func (*Touch) XXX_DiscardUnknown

func (m *Touch) XXX_DiscardUnknown()

func (*Touch) XXX_Marshal

func (m *Touch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Touch) XXX_Merge

func (dst *Touch) XXX_Merge(src proto.Message)

func (*Touch) XXX_Size

func (m *Touch) XXX_Size() int

func (*Touch) XXX_Unmarshal

func (m *Touch) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL