proto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

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.

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetAuthor

func (x *Source) GetAuthor() string

func (*Source) GetCategory

func (x *Source) GetCategory() Source_Category

func (*Source) GetId

func (x *Source) GetId() string

func (*Source) GetName

func (x *Source) GetName() string

func (*Source) GetOrganization

func (x *Source) GetOrganization() string

func (*Source) GetVersion

func (x *Source) GetVersion() string

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

func (x *Source) ProtoReflect() protoreflect.Message

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

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) 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 (Source_Category) String

func (x Source_Category) String() string

func (Source_Category) Type

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

Deprecated: Use Style.ProtoReflect.Descriptor instead.

func (*Style) GetBackgroundColor

func (x *Style) GetBackgroundColor() string

func (*Style) GetHighlightColor

func (x *Style) GetHighlightColor() string

func (*Style) GetPrimaryColor

func (x *Style) GetPrimaryColor() string

func (*Style) ProtoMessage

func (*Style) ProtoMessage()

func (*Style) ProtoReflect

func (x *Style) ProtoReflect() protoreflect.Message

func (*Style) Reset

func (x *Style) Reset()

func (*Style) String

func (x *Style) String() string

type UnimplementedControllerHostServer

type UnimplementedControllerHostServer struct {
}

UnimplementedControllerHostServer can be embedded to have forward compatible implementations.

func (*UnimplementedControllerHostServer) EmitWhisper

type UnimplementedControllerServer

type UnimplementedControllerServer struct {
}

UnimplementedControllerServer can be embedded to have forward compatible implementations.

func (*UnimplementedControllerServer) Config

func (*UnimplementedControllerServer) OnEvent

func (*UnimplementedControllerServer) SetConfig

func (*UnimplementedControllerServer) Start

func (*UnimplementedControllerServer) Stop

type UnimplementedSensorHostServer

type UnimplementedSensorHostServer struct {
}

UnimplementedSensorHostServer can be embedded to have forward compatible implementations.

func (*UnimplementedSensorHostServer) EmitEvent

type UnimplementedSensorServer

type UnimplementedSensorServer struct {
}

UnimplementedSensorServer can be embedded to have forward compatible implementations.

func (*UnimplementedSensorServer) Config

func (*UnimplementedSensorServer) OnEvent

func (*UnimplementedSensorServer) SetConfig

func (*UnimplementedSensorServer) Start

func (*UnimplementedSensorServer) Stop

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

Deprecated: Use Whisper.ProtoReflect.Descriptor instead.

func (*Whisper) GetIcon

func (x *Whisper) GetIcon() string

func (*Whisper) GetLabel

func (x *Whisper) GetLabel() string

func (*Whisper) GetMarkdown

func (x *Whisper) GetMarkdown() string

func (*Whisper) GetStyle

func (x *Whisper) GetStyle() *Style

func (*Whisper) ProtoMessage

func (*Whisper) ProtoMessage()

func (*Whisper) ProtoReflect

func (x *Whisper) ProtoReflect() protoreflect.Message

func (*Whisper) Reset

func (x *Whisper) Reset()

func (*Whisper) String

func (x *Whisper) String() string

Jump to

Keyboard shortcuts

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