Documentation
¶
Index ¶
- Variables
- func RegisterControllerHostServer(s *grpc.Server, srv ControllerHostServer)
- func RegisterControllerServer(s *grpc.Server, srv ControllerServer)
- func RegisterSensorHostServer(s *grpc.Server, srv SensorHostServer)
- func RegisterSensorServer(s *grpc.Server, srv SensorServer)
- type ConfigResponse
- type ControllerClient
- type ControllerHostClient
- type ControllerHostServer
- type ControllerServer
- type EmitEventRequest
- type EmitWhisperRequest
- func (*EmitWhisperRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmitWhisperRequest) GetWhisper() *Whisper
- func (*EmitWhisperRequest) ProtoMessage()
- func (x *EmitWhisperRequest) ProtoReflect() protoreflect.Message
- func (x *EmitWhisperRequest) Reset()
- func (x *EmitWhisperRequest) String() string
- type Empty
- type OnEventRequest
- func (*OnEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OnEventRequest) GetData() map[string]string
- func (x *OnEventRequest) GetSource() *Source
- func (*OnEventRequest) ProtoMessage()
- func (x *OnEventRequest) ProtoReflect() protoreflect.Message
- func (x *OnEventRequest) Reset()
- func (x *OnEventRequest) String() string
- type SensorClient
- type SensorHostClient
- type SensorHostServer
- type SensorServer
- type SetConfigRequest
- func (*SetConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetConfigRequest) GetConfig() map[string]string
- func (*SetConfigRequest) ProtoMessage()
- func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SetConfigRequest) Reset()
- func (x *SetConfigRequest) String() string
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetAuthor() string
- func (x *Source) GetCategory() Source_Category
- func (x *Source) GetId() string
- func (x *Source) GetName() string
- func (x *Source) GetOrganization() string
- func (x *Source) GetVersion() string
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type Source_Category
- func (Source_Category) Descriptor() protoreflect.EnumDescriptor
- func (x Source_Category) Enum() *Source_Category
- func (Source_Category) EnumDescriptor() ([]byte, []int)deprecated
- func (x Source_Category) Number() protoreflect.EnumNumber
- func (x Source_Category) String() string
- func (Source_Category) Type() protoreflect.EnumType
- type StartRequest
- type Style
- func (*Style) Descriptor() ([]byte, []int)deprecated
- func (x *Style) GetBackgroundColor() string
- func (x *Style) GetHighlightColor() string
- func (x *Style) GetPrimaryColor() string
- func (*Style) ProtoMessage()
- func (x *Style) ProtoReflect() protoreflect.Message
- func (x *Style) Reset()
- func (x *Style) String() string
- type UnimplementedControllerHostServer
- type UnimplementedControllerServer
- func (*UnimplementedControllerServer) Config(context.Context, *Empty) (*ConfigResponse, error)
- func (*UnimplementedControllerServer) OnEvent(context.Context, *OnEventRequest) (*Empty, error)
- func (*UnimplementedControllerServer) SetConfig(context.Context, *SetConfigRequest) (*Empty, error)
- func (*UnimplementedControllerServer) Start(context.Context, *StartRequest) (*Empty, error)
- func (*UnimplementedControllerServer) Stop(context.Context, *Empty) (*Empty, error)
- type UnimplementedSensorHostServer
- type UnimplementedSensorServer
- func (*UnimplementedSensorServer) Config(context.Context, *Empty) (*ConfigResponse, error)
- func (*UnimplementedSensorServer) OnEvent(context.Context, *OnEventRequest) (*Empty, error)
- func (*UnimplementedSensorServer) SetConfig(context.Context, *SetConfigRequest) (*Empty, error)
- func (*UnimplementedSensorServer) Start(context.Context, *StartRequest) (*Empty, error)
- func (*UnimplementedSensorServer) Stop(context.Context, *Empty) (*Empty, error)
- type Whisper
- func (*Whisper) Descriptor() ([]byte, []int)deprecated
- func (x *Whisper) GetIcon() string
- func (x *Whisper) GetLabel() string
- func (x *Whisper) GetMarkdown() string
- func (x *Whisper) GetStyle() *Style
- func (*Whisper) ProtoMessage()
- func (x *Whisper) ProtoReflect() protoreflect.Message
- func (x *Whisper) Reset()
- func (x *Whisper) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Source_Category_name = map[int32]string{ 0: "UNKNOWN", 1: "SENSOR", 2: "CONTROLLER", 3: "INTELLIGENCE", 4: "SIDEKICK", } Source_Category_value = map[string]int32{ "UNKNOWN": 0, "SENSOR": 1, "CONTROLLER": 2, "INTELLIGENCE": 3, "SIDEKICK": 4, } )
Enum value maps for Source_Category.
var File_ldk_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControllerHostServer ¶
func RegisterControllerHostServer(s *grpc.Server, srv ControllerHostServer)
func RegisterControllerServer ¶
func RegisterControllerServer(s *grpc.Server, srv ControllerServer)
func RegisterSensorHostServer ¶
func RegisterSensorHostServer(s *grpc.Server, srv SensorHostServer)
func RegisterSensorServer ¶
func RegisterSensorServer(s *grpc.Server, srv SensorServer)
Types ¶
type ConfigResponse ¶
type ConfigResponse struct {
Config map[string]string `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ConfigResponse) Descriptor
deprecated
func (*ConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigResponse.ProtoReflect.Descriptor instead.
func (*ConfigResponse) GetConfig ¶
func (x *ConfigResponse) GetConfig() map[string]string
func (*ConfigResponse) ProtoMessage ¶
func (*ConfigResponse) ProtoMessage()
func (*ConfigResponse) ProtoReflect ¶
func (x *ConfigResponse) ProtoReflect() protoreflect.Message
func (*ConfigResponse) Reset ¶
func (x *ConfigResponse) Reset()
func (*ConfigResponse) String ¶
func (x *ConfigResponse) String() string
type ControllerClient ¶
type ControllerClient interface {
Config(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ConfigResponse, error)
SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*Empty, error)
Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*Empty, error)
Stop(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
OnEvent(ctx context.Context, in *OnEventRequest, opts ...grpc.CallOption) (*Empty, error)
}
ControllerClient is the client API for Controller service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewControllerClient ¶
func NewControllerClient(cc grpc.ClientConnInterface) ControllerClient
type ControllerHostClient ¶
type ControllerHostClient interface {
EmitWhisper(ctx context.Context, in *EmitWhisperRequest, opts ...grpc.CallOption) (*Empty, error)
}
ControllerHostClient is the client API for ControllerHost service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewControllerHostClient ¶
func NewControllerHostClient(cc grpc.ClientConnInterface) ControllerHostClient
type ControllerHostServer ¶
type ControllerHostServer interface {
EmitWhisper(context.Context, *EmitWhisperRequest) (*Empty, error)
}
ControllerHostServer is the server API for ControllerHost service.
type ControllerServer ¶
type ControllerServer interface {
Config(context.Context, *Empty) (*ConfigResponse, error)
SetConfig(context.Context, *SetConfigRequest) (*Empty, error)
Start(context.Context, *StartRequest) (*Empty, error)
Stop(context.Context, *Empty) (*Empty, error)
OnEvent(context.Context, *OnEventRequest) (*Empty, error)
}
ControllerServer is the server API for Controller service.
type EmitEventRequest ¶
type EmitEventRequest struct {
Data map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*EmitEventRequest) Descriptor
deprecated
func (*EmitEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmitEventRequest.ProtoReflect.Descriptor instead.
func (*EmitEventRequest) GetData ¶
func (x *EmitEventRequest) GetData() map[string]string
func (*EmitEventRequest) ProtoMessage ¶
func (*EmitEventRequest) ProtoMessage()
func (*EmitEventRequest) ProtoReflect ¶
func (x *EmitEventRequest) ProtoReflect() protoreflect.Message
func (*EmitEventRequest) Reset ¶
func (x *EmitEventRequest) Reset()
func (*EmitEventRequest) String ¶
func (x *EmitEventRequest) String() string
type EmitWhisperRequest ¶
type EmitWhisperRequest struct {
Whisper *Whisper `protobuf:"bytes,1,opt,name=whisper,proto3" json:"whisper,omitempty"`
// contains filtered or unexported fields
}
func (*EmitWhisperRequest) Descriptor
deprecated
func (*EmitWhisperRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmitWhisperRequest.ProtoReflect.Descriptor instead.
func (*EmitWhisperRequest) GetWhisper ¶
func (x *EmitWhisperRequest) GetWhisper() *Whisper
func (*EmitWhisperRequest) ProtoMessage ¶
func (*EmitWhisperRequest) ProtoMessage()
func (*EmitWhisperRequest) ProtoReflect ¶
func (x *EmitWhisperRequest) ProtoReflect() protoreflect.Message
func (*EmitWhisperRequest) Reset ¶
func (x *EmitWhisperRequest) Reset()
func (*EmitWhisperRequest) String ¶
func (x *EmitWhisperRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type OnEventRequest ¶
type OnEventRequest struct {
Data map[string]string `` /* 149-byte string literal not displayed */
Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// contains filtered or unexported fields
}
func (*OnEventRequest) Descriptor
deprecated
func (*OnEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use OnEventRequest.ProtoReflect.Descriptor instead.
func (*OnEventRequest) GetData ¶
func (x *OnEventRequest) GetData() map[string]string
func (*OnEventRequest) GetSource ¶
func (x *OnEventRequest) GetSource() *Source
func (*OnEventRequest) ProtoMessage ¶
func (*OnEventRequest) ProtoMessage()
func (*OnEventRequest) ProtoReflect ¶
func (x *OnEventRequest) ProtoReflect() protoreflect.Message
func (*OnEventRequest) Reset ¶
func (x *OnEventRequest) Reset()
func (*OnEventRequest) String ¶
func (x *OnEventRequest) String() string
type SensorClient ¶
type SensorClient interface {
Config(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ConfigResponse, error)
SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*Empty, error)
Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*Empty, error)
Stop(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
OnEvent(ctx context.Context, in *OnEventRequest, opts ...grpc.CallOption) (*Empty, error)
}
SensorClient is the client API for Sensor service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSensorClient ¶
func NewSensorClient(cc grpc.ClientConnInterface) SensorClient
type SensorHostClient ¶
type SensorHostClient interface {
EmitEvent(ctx context.Context, in *EmitEventRequest, opts ...grpc.CallOption) (*Empty, error)
}
SensorHostClient is the client API for SensorHost service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSensorHostClient ¶
func NewSensorHostClient(cc grpc.ClientConnInterface) SensorHostClient
type SensorHostServer ¶
type SensorHostServer interface {
EmitEvent(context.Context, *EmitEventRequest) (*Empty, error)
}
SensorHostServer is the server API for SensorHost service.
type SensorServer ¶
type SensorServer interface {
Config(context.Context, *Empty) (*ConfigResponse, error)
SetConfig(context.Context, *SetConfigRequest) (*Empty, error)
Start(context.Context, *StartRequest) (*Empty, error)
Stop(context.Context, *Empty) (*Empty, error)
OnEvent(context.Context, *OnEventRequest) (*Empty, error)
}
SensorServer is the server API for Sensor service.
type SetConfigRequest ¶
type SetConfigRequest struct {
Config map[string]string `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SetConfigRequest) Descriptor
deprecated
func (*SetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
func (*SetConfigRequest) GetConfig ¶
func (x *SetConfigRequest) GetConfig() map[string]string
func (*SetConfigRequest) ProtoMessage ¶
func (*SetConfigRequest) ProtoMessage()
func (*SetConfigRequest) ProtoReflect ¶
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
func (*SetConfigRequest) Reset ¶
func (x *SetConfigRequest) Reset()
func (*SetConfigRequest) String ¶
func (x *SetConfigRequest) String() string
type Source ¶
type Source struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Category Source_Category `protobuf:"varint,2,opt,name=category,proto3,enum=proto.Source_Category" json:"category,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
Organization string `protobuf:"bytes,5,opt,name=organization,proto3" json:"organization,omitempty"`
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*Source) Descriptor
deprecated
func (*Source) GetCategory ¶
func (x *Source) GetCategory() Source_Category
func (*Source) GetOrganization ¶
func (*Source) GetVersion ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type Source_Category ¶
type Source_Category int32
const ( Source_UNKNOWN Source_Category = 0 Source_SENSOR Source_Category = 1 Source_CONTROLLER Source_Category = 2 Source_INTELLIGENCE Source_Category = 3 Source_SIDEKICK Source_Category = 4 )
func (Source_Category) Descriptor ¶
func (Source_Category) Descriptor() protoreflect.EnumDescriptor
func (Source_Category) Enum ¶
func (x Source_Category) Enum() *Source_Category
func (Source_Category) EnumDescriptor
deprecated
func (Source_Category) EnumDescriptor() ([]byte, []int)
Deprecated: Use Source_Category.Descriptor instead.
func (Source_Category) Number ¶
func (x Source_Category) Number() protoreflect.EnumNumber
func (Source_Category) String ¶
func (x Source_Category) String() string
func (Source_Category) Type ¶
func (Source_Category) Type() protoreflect.EnumType
type StartRequest ¶
type StartRequest struct {
Host uint32 `protobuf:"varint,1,opt,name=host,proto3" json:"host,omitempty"`
// contains filtered or unexported fields
}
func (*StartRequest) Descriptor
deprecated
func (*StartRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.
func (*StartRequest) GetHost ¶
func (x *StartRequest) GetHost() uint32
func (*StartRequest) ProtoMessage ¶
func (*StartRequest) ProtoMessage()
func (*StartRequest) ProtoReflect ¶
func (x *StartRequest) ProtoReflect() protoreflect.Message
func (*StartRequest) Reset ¶
func (x *StartRequest) Reset()
func (*StartRequest) String ¶
func (x *StartRequest) String() string
type Style ¶
type Style struct {
BackgroundColor string `protobuf:"bytes,1,opt,name=backgroundColor,proto3" json:"backgroundColor,omitempty"`
PrimaryColor string `protobuf:"bytes,2,opt,name=primaryColor,proto3" json:"primaryColor,omitempty"`
HighlightColor string `protobuf:"bytes,3,opt,name=highlightColor,proto3" json:"highlightColor,omitempty"`
// contains filtered or unexported fields
}
func (*Style) Descriptor
deprecated
func (*Style) GetBackgroundColor ¶
func (*Style) GetHighlightColor ¶
func (*Style) GetPrimaryColor ¶
func (*Style) ProtoMessage ¶
func (*Style) ProtoMessage()
func (*Style) ProtoReflect ¶
func (x *Style) ProtoReflect() protoreflect.Message
type UnimplementedControllerHostServer ¶
type UnimplementedControllerHostServer struct {
}
UnimplementedControllerHostServer can be embedded to have forward compatible implementations.
func (*UnimplementedControllerHostServer) EmitWhisper ¶
func (*UnimplementedControllerHostServer) EmitWhisper(context.Context, *EmitWhisperRequest) (*Empty, error)
type UnimplementedControllerServer ¶
type UnimplementedControllerServer struct {
}
UnimplementedControllerServer can be embedded to have forward compatible implementations.
func (*UnimplementedControllerServer) Config ¶
func (*UnimplementedControllerServer) Config(context.Context, *Empty) (*ConfigResponse, error)
func (*UnimplementedControllerServer) OnEvent ¶
func (*UnimplementedControllerServer) OnEvent(context.Context, *OnEventRequest) (*Empty, error)
func (*UnimplementedControllerServer) SetConfig ¶
func (*UnimplementedControllerServer) SetConfig(context.Context, *SetConfigRequest) (*Empty, error)
func (*UnimplementedControllerServer) Start ¶
func (*UnimplementedControllerServer) Start(context.Context, *StartRequest) (*Empty, error)
type UnimplementedSensorHostServer ¶
type UnimplementedSensorHostServer struct {
}
UnimplementedSensorHostServer can be embedded to have forward compatible implementations.
func (*UnimplementedSensorHostServer) EmitEvent ¶
func (*UnimplementedSensorHostServer) EmitEvent(context.Context, *EmitEventRequest) (*Empty, error)
type UnimplementedSensorServer ¶
type UnimplementedSensorServer struct {
}
UnimplementedSensorServer can be embedded to have forward compatible implementations.
func (*UnimplementedSensorServer) Config ¶
func (*UnimplementedSensorServer) Config(context.Context, *Empty) (*ConfigResponse, error)
func (*UnimplementedSensorServer) OnEvent ¶
func (*UnimplementedSensorServer) OnEvent(context.Context, *OnEventRequest) (*Empty, error)
func (*UnimplementedSensorServer) SetConfig ¶
func (*UnimplementedSensorServer) SetConfig(context.Context, *SetConfigRequest) (*Empty, error)
func (*UnimplementedSensorServer) Start ¶
func (*UnimplementedSensorServer) Start(context.Context, *StartRequest) (*Empty, error)
type Whisper ¶
type Whisper struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
Markdown string `protobuf:"bytes,2,opt,name=markdown,proto3" json:"markdown,omitempty"`
Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
Style *Style `protobuf:"bytes,4,opt,name=style,proto3" json:"style,omitempty"`
// contains filtered or unexported fields
}
func (*Whisper) Descriptor
deprecated
func (*Whisper) GetMarkdown ¶
func (*Whisper) ProtoMessage ¶
func (*Whisper) ProtoMessage()
func (*Whisper) ProtoReflect ¶
func (x *Whisper) ProtoReflect() protoreflect.Message