Documentation ¶
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type API_StreamCueMasterClient
- type API_StreamCueMasterServer
- type API_StreamGetLightsClient
- type API_StreamGetLightsServer
- type CommandsRequest
- func (*CommandsRequest) Descriptor() ([]byte, []int)
- func (m *CommandsRequest) GetCommands() []string
- func (*CommandsRequest) ProtoMessage()
- func (m *CommandsRequest) Reset()
- func (m *CommandsRequest) String() string
- func (m *CommandsRequest) XXX_DiscardUnknown()
- func (m *CommandsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommandsRequest) XXX_Merge(src proto.Message)
- func (m *CommandsRequest) XXX_Size() int
- func (m *CommandsRequest) XXX_Unmarshal(b []byte) error
- type ConnectionSettings
- func (*ConnectionSettings) Descriptor() ([]byte, []int)
- func (m *ConnectionSettings) GetTick() string
- func (*ConnectionSettings) ProtoMessage()
- func (m *ConnectionSettings) Reset()
- func (m *ConnectionSettings) String() string
- func (m *ConnectionSettings) XXX_DiscardUnknown()
- func (m *ConnectionSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConnectionSettings) XXX_Merge(src proto.Message)
- func (m *ConnectionSettings) XXX_Size() int
- func (m *ConnectionSettings) XXX_Unmarshal(b []byte) error
- type Cue
- func (*Cue) Descriptor() ([]byte, []int)
- func (m *Cue) GetExpectedDurationMS() int32
- func (*Cue) ProtoMessage()
- func (m *Cue) Reset()
- func (m *Cue) String() string
- func (m *Cue) XXX_DiscardUnknown()
- func (m *Cue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Cue) XXX_Merge(src proto.Message)
- func (m *Cue) XXX_Size() int
- func (m *Cue) XXX_Unmarshal(b []byte) error
- type CuesResponse
- func (*CuesResponse) Descriptor() ([]byte, []int)
- func (m *CuesResponse) GetCues() []*Cue
- func (m *CuesResponse) GetErr() string
- func (*CuesResponse) ProtoMessage()
- func (m *CuesResponse) Reset()
- func (m *CuesResponse) String() string
- func (m *CuesResponse) XXX_DiscardUnknown()
- func (m *CuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CuesResponse) XXX_Merge(src proto.Message)
- func (m *CuesResponse) XXX_Size() int
- func (m *CuesResponse) XXX_Unmarshal(b []byte) error
- type Light
- func (*Light) Descriptor() ([]byte, []int)
- func (m *Light) GetCurrentColor() *RGB
- func (m *Light) GetName() string
- func (m *Light) GetType() string
- func (*Light) ProtoMessage()
- func (m *Light) Reset()
- func (m *Light) String() string
- func (m *Light) XXX_DiscardUnknown()
- func (m *Light) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Light) XXX_Merge(src proto.Message)
- func (m *Light) XXX_Size() int
- func (m *Light) XXX_Unmarshal(b []byte) error
- type Lights
- func (*Lights) Descriptor() ([]byte, []int)
- func (m *Lights) GetLights() []*Light
- func (*Lights) ProtoMessage()
- func (m *Lights) Reset()
- func (m *Lights) String() string
- func (m *Lights) XXX_DiscardUnknown()
- func (m *Lights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Lights) XXX_Merge(src proto.Message)
- func (m *Lights) XXX_Size() int
- func (m *Lights) XXX_Unmarshal(b []byte) error
- type MarshalledJSON
- func (*MarshalledJSON) Descriptor() ([]byte, []int)
- func (m *MarshalledJSON) GetData() []byte
- func (m *MarshalledJSON) GetKind() string
- func (*MarshalledJSON) ProtoMessage()
- func (m *MarshalledJSON) Reset()
- func (m *MarshalledJSON) String() string
- func (m *MarshalledJSON) XXX_DiscardUnknown()
- func (m *MarshalledJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MarshalledJSON) XXX_Merge(src proto.Message)
- func (m *MarshalledJSON) XXX_Size() int
- func (m *MarshalledJSON) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (m *Ping) GetMessage() string
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type RGB
- func (*RGB) Descriptor() ([]byte, []int)
- func (m *RGB) GetB() int32
- func (m *RGB) GetG() int32
- func (m *RGB) GetR() int32
- func (*RGB) ProtoMessage()
- func (m *RGB) Reset()
- func (m *RGB) String() string
- func (m *RGB) XXX_DiscardUnknown()
- func (m *RGB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RGB) XXX_Merge(src proto.Message)
- func (m *RGB) XXX_Size() int
- func (m *RGB) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { GetPing(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Ping, error) StreamCueMaster(ctx context.Context, in *ConnectionSettings, opts ...grpc.CallOption) (API_StreamCueMasterClient, error) StreamGetLights(ctx context.Context, in *ConnectionSettings, opts ...grpc.CallOption) (API_StreamGetLightsClient, error) ProcessCommands(ctx context.Context, in *CommandsRequest, opts ...grpc.CallOption) (*CuesResponse, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { GetPing(context.Context, *Ping) (*Ping, error) StreamCueMaster(*ConnectionSettings, API_StreamCueMasterServer) error StreamGetLights(*ConnectionSettings, API_StreamGetLightsServer) error ProcessCommands(context.Context, *CommandsRequest) (*CuesResponse, error) }
APIServer is the server API for API service.
type API_StreamCueMasterClient ¶
type API_StreamCueMasterClient interface { Recv() (*MarshalledJSON, error) grpc.ClientStream }
type API_StreamCueMasterServer ¶
type API_StreamCueMasterServer interface { Send(*MarshalledJSON) error grpc.ServerStream }
type API_StreamGetLightsClient ¶
type API_StreamGetLightsClient interface { Recv() (*Lights, error) grpc.ClientStream }
type API_StreamGetLightsServer ¶
type API_StreamGetLightsServer interface { Send(*Lights) error grpc.ServerStream }
type CommandsRequest ¶
type CommandsRequest struct { Commands []string `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommandsRequest) Descriptor ¶
func (*CommandsRequest) Descriptor() ([]byte, []int)
func (*CommandsRequest) GetCommands ¶
func (m *CommandsRequest) GetCommands() []string
func (*CommandsRequest) ProtoMessage ¶
func (*CommandsRequest) ProtoMessage()
func (*CommandsRequest) Reset ¶
func (m *CommandsRequest) Reset()
func (*CommandsRequest) String ¶
func (m *CommandsRequest) String() string
func (*CommandsRequest) XXX_DiscardUnknown ¶
func (m *CommandsRequest) XXX_DiscardUnknown()
func (*CommandsRequest) XXX_Marshal ¶
func (m *CommandsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandsRequest) XXX_Merge ¶
func (dst *CommandsRequest) XXX_Merge(src proto.Message)
func (*CommandsRequest) XXX_Size ¶
func (m *CommandsRequest) XXX_Size() int
func (*CommandsRequest) XXX_Unmarshal ¶
func (m *CommandsRequest) XXX_Unmarshal(b []byte) error
type ConnectionSettings ¶
type ConnectionSettings struct { Tick string `protobuf:"bytes,1,opt,name=tick,proto3" json:"tick,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnectionSettings) Descriptor ¶
func (*ConnectionSettings) Descriptor() ([]byte, []int)
func (*ConnectionSettings) GetTick ¶
func (m *ConnectionSettings) GetTick() string
func (*ConnectionSettings) ProtoMessage ¶
func (*ConnectionSettings) ProtoMessage()
func (*ConnectionSettings) Reset ¶
func (m *ConnectionSettings) Reset()
func (*ConnectionSettings) String ¶
func (m *ConnectionSettings) String() string
func (*ConnectionSettings) XXX_DiscardUnknown ¶
func (m *ConnectionSettings) XXX_DiscardUnknown()
func (*ConnectionSettings) XXX_Marshal ¶
func (m *ConnectionSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectionSettings) XXX_Merge ¶
func (dst *ConnectionSettings) XXX_Merge(src proto.Message)
func (*ConnectionSettings) XXX_Size ¶
func (m *ConnectionSettings) XXX_Size() int
func (*ConnectionSettings) XXX_Unmarshal ¶
func (m *ConnectionSettings) XXX_Unmarshal(b []byte) error
type Cue ¶
type Cue struct { ExpectedDurationMS int32 `protobuf:"varint,1,opt,name=ExpectedDurationMS,proto3" json:"ExpectedDurationMS,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cue) Descriptor ¶
func (*Cue) GetExpectedDurationMS ¶
func (*Cue) ProtoMessage ¶
func (*Cue) ProtoMessage()
func (*Cue) XXX_DiscardUnknown ¶
func (m *Cue) XXX_DiscardUnknown()
func (*Cue) XXX_Unmarshal ¶
type CuesResponse ¶
type CuesResponse struct { Cues []*Cue `protobuf:"bytes,1,rep,name=cues,proto3" json:"cues,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CuesResponse) Descriptor ¶
func (*CuesResponse) Descriptor() ([]byte, []int)
func (*CuesResponse) GetCues ¶
func (m *CuesResponse) GetCues() []*Cue
func (*CuesResponse) GetErr ¶
func (m *CuesResponse) GetErr() string
func (*CuesResponse) ProtoMessage ¶
func (*CuesResponse) ProtoMessage()
func (*CuesResponse) Reset ¶
func (m *CuesResponse) Reset()
func (*CuesResponse) String ¶
func (m *CuesResponse) String() string
func (*CuesResponse) XXX_DiscardUnknown ¶
func (m *CuesResponse) XXX_DiscardUnknown()
func (*CuesResponse) XXX_Marshal ¶
func (m *CuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CuesResponse) XXX_Merge ¶
func (dst *CuesResponse) XXX_Merge(src proto.Message)
func (*CuesResponse) XXX_Size ¶
func (m *CuesResponse) XXX_Size() int
func (*CuesResponse) XXX_Unmarshal ¶
func (m *CuesResponse) XXX_Unmarshal(b []byte) error
type Light ¶
type Light struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CurrentColor *RGB `protobuf:"bytes,3,opt,name=currentColor,proto3" json:"currentColor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Light) Descriptor ¶
func (*Light) GetCurrentColor ¶
func (*Light) ProtoMessage ¶
func (*Light) ProtoMessage()
func (*Light) XXX_DiscardUnknown ¶
func (m *Light) XXX_DiscardUnknown()
func (*Light) XXX_Marshal ¶
func (*Light) XXX_Unmarshal ¶
type Lights ¶
type Lights struct { Lights []*Light `protobuf:"bytes,1,rep,name=lights,proto3" json:"lights,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Lights) Descriptor ¶
func (*Lights) ProtoMessage ¶
func (*Lights) ProtoMessage()
func (*Lights) XXX_DiscardUnknown ¶
func (m *Lights) XXX_DiscardUnknown()
func (*Lights) XXX_Marshal ¶
func (*Lights) XXX_Unmarshal ¶
type MarshalledJSON ¶
type MarshalledJSON struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarshalledJSON) Descriptor ¶
func (*MarshalledJSON) Descriptor() ([]byte, []int)
func (*MarshalledJSON) GetData ¶
func (m *MarshalledJSON) GetData() []byte
func (*MarshalledJSON) GetKind ¶
func (m *MarshalledJSON) GetKind() string
func (*MarshalledJSON) ProtoMessage ¶
func (*MarshalledJSON) ProtoMessage()
func (*MarshalledJSON) Reset ¶
func (m *MarshalledJSON) Reset()
func (*MarshalledJSON) String ¶
func (m *MarshalledJSON) String() string
func (*MarshalledJSON) XXX_DiscardUnknown ¶
func (m *MarshalledJSON) XXX_DiscardUnknown()
func (*MarshalledJSON) XXX_Marshal ¶
func (m *MarshalledJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarshalledJSON) XXX_Merge ¶
func (dst *MarshalledJSON) XXX_Merge(src proto.Message)
func (*MarshalledJSON) XXX_Size ¶
func (m *MarshalledJSON) XXX_Size() int
func (*MarshalledJSON) XXX_Unmarshal ¶
func (m *MarshalledJSON) XXX_Unmarshal(b []byte) error
type Ping ¶
type Ping struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶
func (*Ping) GetMessage ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type RGB ¶
type RGB struct { R int32 `protobuf:"varint,1,opt,name=R,proto3" json:"R,omitempty"` G int32 `protobuf:"varint,2,opt,name=G,proto3" json:"G,omitempty"` B int32 `protobuf:"varint,3,opt,name=B,proto3" json:"B,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RGB) Descriptor ¶
func (*RGB) ProtoMessage ¶
func (*RGB) ProtoMessage()
func (*RGB) XXX_DiscardUnknown ¶
func (m *RGB) XXX_DiscardUnknown()
func (*RGB) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.