api

package
v0.0.0-...-1392edb Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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

func (*Cue) GetExpectedDurationMS

func (m *Cue) GetExpectedDurationMS() int32

func (*Cue) ProtoMessage

func (*Cue) ProtoMessage()

func (*Cue) Reset

func (m *Cue) Reset()

func (*Cue) String

func (m *Cue) String() string

func (*Cue) XXX_DiscardUnknown

func (m *Cue) XXX_DiscardUnknown()

func (*Cue) XXX_Marshal

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

func (*Cue) XXX_Merge

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

func (*Cue) XXX_Size

func (m *Cue) XXX_Size() int

func (*Cue) XXX_Unmarshal

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

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

func (*Light) GetCurrentColor

func (m *Light) GetCurrentColor() *RGB

func (*Light) GetName

func (m *Light) GetName() string

func (*Light) GetType

func (m *Light) GetType() string

func (*Light) ProtoMessage

func (*Light) ProtoMessage()

func (*Light) Reset

func (m *Light) Reset()

func (*Light) String

func (m *Light) String() string

func (*Light) XXX_DiscardUnknown

func (m *Light) XXX_DiscardUnknown()

func (*Light) XXX_Marshal

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

func (*Light) XXX_Merge

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

func (*Light) XXX_Size

func (m *Light) XXX_Size() int

func (*Light) XXX_Unmarshal

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

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

func (*Lights) GetLights

func (m *Lights) GetLights() []*Light

func (*Lights) ProtoMessage

func (*Lights) ProtoMessage()

func (*Lights) Reset

func (m *Lights) Reset()

func (*Lights) String

func (m *Lights) String() string

func (*Lights) XXX_DiscardUnknown

func (m *Lights) XXX_DiscardUnknown()

func (*Lights) XXX_Marshal

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

func (*Lights) XXX_Merge

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

func (*Lights) XXX_Size

func (m *Lights) XXX_Size() int

func (*Lights) XXX_Unmarshal

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

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

func (*Ping) GetMessage

func (m *Ping) GetMessage() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

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

func (*Ping) XXX_Merge

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

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

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

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

func (*RGB) GetB

func (m *RGB) GetB() int32

func (*RGB) GetG

func (m *RGB) GetG() int32

func (*RGB) GetR

func (m *RGB) GetR() int32

func (*RGB) ProtoMessage

func (*RGB) ProtoMessage()

func (*RGB) Reset

func (m *RGB) Reset()

func (*RGB) String

func (m *RGB) String() string

func (*RGB) XXX_DiscardUnknown

func (m *RGB) XXX_DiscardUnknown()

func (*RGB) XXX_Marshal

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

func (*RGB) XXX_Merge

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

func (*RGB) XXX_Size

func (m *RGB) XXX_Size() int

func (*RGB) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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