Documentation ¶
Overview ¶
Package v2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLEDControllerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLEDControllerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LEDControllerClient) error
- func RegisterLEDControllerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLEDControllerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LEDControllerServer) error
- func RegisterLEDControllerServer(s grpc.ServiceRegistrar, srv LEDControllerServer)
- type ColorConfig
- func (*ColorConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ColorConfig) GetColors() []string
- func (x *ColorConfig) GetFadeDelay() int32
- func (x *ColorConfig) GetIsGradient() bool
- func (x *ColorConfig) GetMode() ColorMode
- func (x *ColorConfig) GetStepDelay() int32
- func (*ColorConfig) ProtoMessage()
- func (x *ColorConfig) ProtoReflect() protoreflect.Message
- func (x *ColorConfig) Reset()
- func (x *ColorConfig) String() string
- type ColorMode
- type GetLEDsRequest
- func (*GetLEDsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLEDsRequest) GetFilter() string
- func (x *GetLEDsRequest) GetMetadata() *RequestMetadata
- func (*GetLEDsRequest) ProtoMessage()
- func (x *GetLEDsRequest) ProtoReflect() protoreflect.Message
- func (x *GetLEDsRequest) Reset()
- func (x *GetLEDsRequest) String() string
- type GetLEDsResponse
- func (*GetLEDsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLEDsResponse) GetLeds() []*LED
- func (x *GetLEDsResponse) GetMetadata() *ResponseMetadata
- func (*GetLEDsResponse) ProtoMessage()
- func (x *GetLEDsResponse) ProtoReflect() protoreflect.Message
- func (x *GetLEDsResponse) Reset()
- func (x *GetLEDsResponse) String() string
- type LED
- func (*LED) Descriptor() ([]byte, []int)deprecated
- func (x *LED) GetColor() *ColorConfig
- func (x *LED) GetDataPin() int32
- func (x *LED) GetFriendlyName() string
- func (x *LED) GetIpAddress() string
- func (x *LED) GetLights() *LightConfig
- func (x *LED) GetMacAddress() string
- func (x *LED) GetMdnsName() string
- func (x *LED) GetWifi() *WifiConfig
- func (*LED) ProtoMessage()
- func (x *LED) ProtoReflect() protoreflect.Message
- func (x *LED) Reset()
- func (x *LED) String() string
- type LEDControllerClient
- type LEDControllerServer
- type LightConfig
- func (*LightConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LightConfig) GetBrightness() int32
- func (x *LightConfig) GetCount() int32
- func (x *LightConfig) GetEndTime() int32
- func (x *LightConfig) GetIsEnabled() bool
- func (x *LightConfig) GetStartTime() int32
- func (*LightConfig) ProtoMessage()
- func (x *LightConfig) ProtoReflect() protoreflect.Message
- func (x *LightConfig) Reset()
- func (x *LightConfig) String() string
- type RegisterLEDRequest
- func (*RegisterLEDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterLEDRequest) GetLed() *LED
- func (x *RegisterLEDRequest) GetMetadata() *RequestMetadata
- func (*RegisterLEDRequest) ProtoMessage()
- func (x *RegisterLEDRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterLEDRequest) Reset()
- func (x *RegisterLEDRequest) String() string
- type RegisterLEDResponse
- func (*RegisterLEDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterLEDResponse) GetMetadata() *ResponseMetadata
- func (*RegisterLEDResponse) ProtoMessage()
- func (x *RegisterLEDResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterLEDResponse) Reset()
- func (x *RegisterLEDResponse) String() string
- type RequestMetadata
- type ResponseMetadata
- func (*ResponseMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseMetadata) GetCode() int32
- func (x *ResponseMetadata) GetMessage() string
- func (*ResponseMetadata) ProtoMessage()
- func (x *ResponseMetadata) ProtoReflect() protoreflect.Message
- func (x *ResponseMetadata) Reset()
- func (x *ResponseMetadata) String() string
- type SyncLEDsRequest
- func (*SyncLEDsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncLEDsRequest) GetMetadata() *RequestMetadata
- func (x *SyncLEDsRequest) GetSourceIdentifier() string
- func (x *SyncLEDsRequest) GetTargetIdentifier() []string
- func (*SyncLEDsRequest) ProtoMessage()
- func (x *SyncLEDsRequest) ProtoReflect() protoreflect.Message
- func (x *SyncLEDsRequest) Reset()
- func (x *SyncLEDsRequest) String() string
- type SyncLEDsResponse
- func (*SyncLEDsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncLEDsResponse) GetMetadata() *ResponseMetadata
- func (*SyncLEDsResponse) ProtoMessage()
- func (x *SyncLEDsResponse) ProtoReflect() protoreflect.Message
- func (x *SyncLEDsResponse) Reset()
- func (x *SyncLEDsResponse) String() string
- type ToggleLEDRequest
- func (*ToggleLEDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleLEDRequest) GetIpAddress() string
- func (x *ToggleLEDRequest) GetMetadata() *RequestMetadata
- func (*ToggleLEDRequest) ProtoMessage()
- func (x *ToggleLEDRequest) ProtoReflect() protoreflect.Message
- func (x *ToggleLEDRequest) Reset()
- func (x *ToggleLEDRequest) String() string
- type ToggleLEDResponse
- func (*ToggleLEDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleLEDResponse) GetMetadata() *ResponseMetadata
- func (*ToggleLEDResponse) ProtoMessage()
- func (x *ToggleLEDResponse) ProtoReflect() protoreflect.Message
- func (x *ToggleLEDResponse) Reset()
- func (x *ToggleLEDResponse) String() string
- type UnimplementedLEDControllerServer
- func (UnimplementedLEDControllerServer) GetLEDs(context.Context, *GetLEDsRequest) (*GetLEDsResponse, error)
- func (UnimplementedLEDControllerServer) RegisterLED(context.Context, *RegisterLEDRequest) (*RegisterLEDResponse, error)
- func (UnimplementedLEDControllerServer) SyncLEDs(context.Context, *SyncLEDsRequest) (*SyncLEDsResponse, error)
- func (UnimplementedLEDControllerServer) ToggleLED(context.Context, *ToggleLEDRequest) (*ToggleLEDResponse, error)
- func (UnimplementedLEDControllerServer) UpdateLEDs(context.Context, *UpdateLEDsRequest) (*UpdateLEDsResponse, error)
- type UnsafeLEDControllerServer
- type UpdateLEDsRequest
- func (*UpdateLEDsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLEDsRequest) GetLeds() []*LED
- func (x *UpdateLEDsRequest) GetMetadata() *RequestMetadata
- func (*UpdateLEDsRequest) ProtoMessage()
- func (x *UpdateLEDsRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLEDsRequest) Reset()
- func (x *UpdateLEDsRequest) String() string
- type UpdateLEDsResponse
- func (*UpdateLEDsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLEDsResponse) GetMetadata() *ResponseMetadata
- func (*UpdateLEDsResponse) ProtoMessage()
- func (x *UpdateLEDsResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateLEDsResponse) Reset()
- func (x *UpdateLEDsResponse) String() string
- type WifiConfig
- func (*WifiConfig) Descriptor() ([]byte, []int)deprecated
- func (x *WifiConfig) GetMode() WifiMode
- func (x *WifiConfig) GetPassword() string
- func (x *WifiConfig) GetPk() string
- func (x *WifiConfig) GetSsid() string
- func (*WifiConfig) ProtoMessage()
- func (x *WifiConfig) ProtoReflect() protoreflect.Message
- func (x *WifiConfig) Reset()
- func (x *WifiConfig) String() string
- type WifiMode
Constants ¶
This section is empty.
Variables ¶
var ( WifiMode_name = map[int32]string{ 0: "WIFI_MODE_UNDEFINED", 1: "WIFI_MODE_STATION", 2: "WIFI_MODE_SOFT_AP", 3: "WIFI_MODE_DUAL", } WifiMode_value = map[string]int32{ "WIFI_MODE_UNDEFINED": 0, "WIFI_MODE_STATION": 1, "WIFI_MODE_SOFT_AP": 2, "WIFI_MODE_DUAL": 3, } )
Enum value maps for WifiMode.
var ( ColorMode_name = map[int32]string{ 0: "COLOR_MODE_STATIC", 1: "COLOR_MODE_STEP", 2: "COLOR_MODE_FADE", 3: "COLOR_MODE_REVERSING_STEP", } ColorMode_value = map[string]int32{ "COLOR_MODE_STATIC": 0, "COLOR_MODE_STEP": 1, "COLOR_MODE_FADE": 2, "COLOR_MODE_REVERSING_STEP": 3, } )
Enum value maps for ColorMode.
var File_proto_led_proto protoreflect.FileDescriptor
var LEDController_ServiceDesc = grpc.ServiceDesc{ ServiceName: "LEDController", HandlerType: (*LEDControllerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetLEDs", Handler: _LEDController_GetLEDs_Handler, }, { MethodName: "UpdateLEDs", Handler: _LEDController_UpdateLEDs_Handler, }, { MethodName: "RegisterLED", Handler: _LEDController_RegisterLED_Handler, }, { MethodName: "SyncLEDs", Handler: _LEDController_SyncLEDs_Handler, }, { MethodName: "ToggleLED", Handler: _LEDController_ToggleLED_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/led.proto", }
LEDController_ServiceDesc is the grpc.ServiceDesc for LEDController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLEDControllerHandler ¶
func RegisterLEDControllerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLEDControllerHandler registers the http handlers for service LEDController to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLEDControllerHandlerClient ¶
func RegisterLEDControllerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LEDControllerClient) error
RegisterLEDControllerHandlerClient registers the http handlers for service LEDController to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LEDControllerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LEDControllerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LEDControllerClient" to call the correct interceptors.
func RegisterLEDControllerHandlerFromEndpoint ¶
func RegisterLEDControllerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLEDControllerHandlerFromEndpoint is same as RegisterLEDControllerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLEDControllerHandlerServer ¶
func RegisterLEDControllerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LEDControllerServer) error
RegisterLEDControllerHandlerServer registers the http handlers for service LEDController to "mux". UnaryRPC :call LEDControllerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLEDControllerHandlerFromEndpoint instead.
func RegisterLEDControllerServer ¶
func RegisterLEDControllerServer(s grpc.ServiceRegistrar, srv LEDControllerServer)
Types ¶
type ColorConfig ¶
type ColorConfig struct { Mode ColorMode `protobuf:"varint,1,opt,name=mode,proto3,enum=ColorMode" json:"mode,omitempty"` FadeDelay int32 `protobuf:"varint,2,opt,name=fade_delay,json=fadeDelay,proto3" json:"fade_delay,omitempty"` StepDelay int32 `protobuf:"varint,3,opt,name=step_delay,json=stepDelay,proto3" json:"step_delay,omitempty"` IsGradient bool `protobuf:"varint,4,opt,name=is_gradient,json=isGradient,proto3" json:"is_gradient,omitempty"` Colors []string `protobuf:"bytes,5,rep,name=colors,proto3" json:"colors,omitempty"` // contains filtered or unexported fields }
func (*ColorConfig) Descriptor
deprecated
func (*ColorConfig) Descriptor() ([]byte, []int)
Deprecated: Use ColorConfig.ProtoReflect.Descriptor instead.
func (*ColorConfig) GetColors ¶
func (x *ColorConfig) GetColors() []string
func (*ColorConfig) GetFadeDelay ¶
func (x *ColorConfig) GetFadeDelay() int32
func (*ColorConfig) GetIsGradient ¶
func (x *ColorConfig) GetIsGradient() bool
func (*ColorConfig) GetMode ¶
func (x *ColorConfig) GetMode() ColorMode
func (*ColorConfig) GetStepDelay ¶
func (x *ColorConfig) GetStepDelay() int32
func (*ColorConfig) ProtoMessage ¶
func (*ColorConfig) ProtoMessage()
func (*ColorConfig) ProtoReflect ¶
func (x *ColorConfig) ProtoReflect() protoreflect.Message
func (*ColorConfig) Reset ¶
func (x *ColorConfig) Reset()
func (*ColorConfig) String ¶
func (x *ColorConfig) String() string
type ColorMode ¶
type ColorMode int32
func (ColorMode) Descriptor ¶
func (ColorMode) Descriptor() protoreflect.EnumDescriptor
func (ColorMode) EnumDescriptor
deprecated
func (ColorMode) Number ¶
func (x ColorMode) Number() protoreflect.EnumNumber
func (ColorMode) Type ¶
func (ColorMode) Type() protoreflect.EnumType
type GetLEDsRequest ¶
type GetLEDsRequest struct { Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*GetLEDsRequest) Descriptor
deprecated
func (*GetLEDsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLEDsRequest.ProtoReflect.Descriptor instead.
func (*GetLEDsRequest) GetFilter ¶
func (x *GetLEDsRequest) GetFilter() string
func (*GetLEDsRequest) GetMetadata ¶
func (x *GetLEDsRequest) GetMetadata() *RequestMetadata
func (*GetLEDsRequest) ProtoMessage ¶
func (*GetLEDsRequest) ProtoMessage()
func (*GetLEDsRequest) ProtoReflect ¶
func (x *GetLEDsRequest) ProtoReflect() protoreflect.Message
func (*GetLEDsRequest) Reset ¶
func (x *GetLEDsRequest) Reset()
func (*GetLEDsRequest) String ¶
func (x *GetLEDsRequest) String() string
type GetLEDsResponse ¶
type GetLEDsResponse struct { Metadata *ResponseMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Leds []*LED `protobuf:"bytes,2,rep,name=leds,proto3" json:"leds,omitempty"` // contains filtered or unexported fields }
func (*GetLEDsResponse) Descriptor
deprecated
func (*GetLEDsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLEDsResponse.ProtoReflect.Descriptor instead.
func (*GetLEDsResponse) GetLeds ¶
func (x *GetLEDsResponse) GetLeds() []*LED
func (*GetLEDsResponse) GetMetadata ¶
func (x *GetLEDsResponse) GetMetadata() *ResponseMetadata
func (*GetLEDsResponse) ProtoMessage ¶
func (*GetLEDsResponse) ProtoMessage()
func (*GetLEDsResponse) ProtoReflect ¶
func (x *GetLEDsResponse) ProtoReflect() protoreflect.Message
func (*GetLEDsResponse) Reset ¶
func (x *GetLEDsResponse) Reset()
func (*GetLEDsResponse) String ¶
func (x *GetLEDsResponse) String() string
type LED ¶
type LED struct { Color *ColorConfig `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"` Lights *LightConfig `protobuf:"bytes,2,opt,name=lights,proto3" json:"lights,omitempty"` Wifi *WifiConfig `protobuf:"bytes,3,opt,name=wifi,proto3" json:"wifi,omitempty"` DataPin int32 `protobuf:"varint,4,opt,name=data_pin,json=dataPin,proto3" json:"data_pin,omitempty"` MdnsName string `protobuf:"bytes,5,opt,name=mdns_name,json=mdnsName,proto3" json:"mdns_name,omitempty"` FriendlyName string `protobuf:"bytes,6,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"` IpAddress string `protobuf:"bytes,7,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` MacAddress string `protobuf:"bytes,8,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` // contains filtered or unexported fields }
func (*LED) Descriptor
deprecated
func (*LED) GetColor ¶
func (x *LED) GetColor() *ColorConfig
func (*LED) GetDataPin ¶
func (*LED) GetFriendlyName ¶
func (*LED) GetIpAddress ¶
func (*LED) GetLights ¶
func (x *LED) GetLights() *LightConfig
func (*LED) GetMacAddress ¶
func (*LED) GetMdnsName ¶
func (*LED) GetWifi ¶
func (x *LED) GetWifi() *WifiConfig
func (*LED) ProtoMessage ¶
func (*LED) ProtoMessage()
func (*LED) ProtoReflect ¶
func (x *LED) ProtoReflect() protoreflect.Message
type LEDControllerClient ¶
type LEDControllerClient interface { GetLEDs(ctx context.Context, in *GetLEDsRequest, opts ...grpc.CallOption) (*GetLEDsResponse, error) UpdateLEDs(ctx context.Context, in *UpdateLEDsRequest, opts ...grpc.CallOption) (*UpdateLEDsResponse, error) RegisterLED(ctx context.Context, in *RegisterLEDRequest, opts ...grpc.CallOption) (*RegisterLEDResponse, error) SyncLEDs(ctx context.Context, in *SyncLEDsRequest, opts ...grpc.CallOption) (*SyncLEDsResponse, error) ToggleLED(ctx context.Context, in *ToggleLEDRequest, opts ...grpc.CallOption) (*ToggleLEDResponse, error) }
LEDControllerClient is the client API for LEDController service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLEDControllerClient ¶
func NewLEDControllerClient(cc grpc.ClientConnInterface) LEDControllerClient
type LEDControllerServer ¶
type LEDControllerServer interface { GetLEDs(context.Context, *GetLEDsRequest) (*GetLEDsResponse, error) UpdateLEDs(context.Context, *UpdateLEDsRequest) (*UpdateLEDsResponse, error) RegisterLED(context.Context, *RegisterLEDRequest) (*RegisterLEDResponse, error) SyncLEDs(context.Context, *SyncLEDsRequest) (*SyncLEDsResponse, error) ToggleLED(context.Context, *ToggleLEDRequest) (*ToggleLEDResponse, error) // contains filtered or unexported methods }
LEDControllerServer is the server API for LEDController service. All implementations must embed UnimplementedLEDControllerServer for forward compatibility
type LightConfig ¶
type LightConfig struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` StartTime int32 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int32 `protobuf:"varint,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` IsEnabled bool `protobuf:"varint,4,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` Brightness int32 `protobuf:"varint,5,opt,name=brightness,proto3" json:"brightness,omitempty"` // contains filtered or unexported fields }
func (*LightConfig) Descriptor
deprecated
func (*LightConfig) Descriptor() ([]byte, []int)
Deprecated: Use LightConfig.ProtoReflect.Descriptor instead.
func (*LightConfig) GetBrightness ¶
func (x *LightConfig) GetBrightness() int32
func (*LightConfig) GetCount ¶
func (x *LightConfig) GetCount() int32
func (*LightConfig) GetEndTime ¶
func (x *LightConfig) GetEndTime() int32
func (*LightConfig) GetIsEnabled ¶
func (x *LightConfig) GetIsEnabled() bool
func (*LightConfig) GetStartTime ¶
func (x *LightConfig) GetStartTime() int32
func (*LightConfig) ProtoMessage ¶
func (*LightConfig) ProtoMessage()
func (*LightConfig) ProtoReflect ¶
func (x *LightConfig) ProtoReflect() protoreflect.Message
func (*LightConfig) Reset ¶
func (x *LightConfig) Reset()
func (*LightConfig) String ¶
func (x *LightConfig) String() string
type RegisterLEDRequest ¶
type RegisterLEDRequest struct { Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Led *LED `protobuf:"bytes,2,opt,name=led,proto3" json:"led,omitempty"` // contains filtered or unexported fields }
func (*RegisterLEDRequest) Descriptor
deprecated
func (*RegisterLEDRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterLEDRequest.ProtoReflect.Descriptor instead.
func (*RegisterLEDRequest) GetLed ¶
func (x *RegisterLEDRequest) GetLed() *LED
func (*RegisterLEDRequest) GetMetadata ¶
func (x *RegisterLEDRequest) GetMetadata() *RequestMetadata
func (*RegisterLEDRequest) ProtoMessage ¶
func (*RegisterLEDRequest) ProtoMessage()
func (*RegisterLEDRequest) ProtoReflect ¶
func (x *RegisterLEDRequest) ProtoReflect() protoreflect.Message
func (*RegisterLEDRequest) Reset ¶
func (x *RegisterLEDRequest) Reset()
func (*RegisterLEDRequest) String ¶
func (x *RegisterLEDRequest) String() string
type RegisterLEDResponse ¶
type RegisterLEDResponse struct { Metadata *ResponseMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*RegisterLEDResponse) Descriptor
deprecated
func (*RegisterLEDResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterLEDResponse.ProtoReflect.Descriptor instead.
func (*RegisterLEDResponse) GetMetadata ¶
func (x *RegisterLEDResponse) GetMetadata() *ResponseMetadata
func (*RegisterLEDResponse) ProtoMessage ¶
func (*RegisterLEDResponse) ProtoMessage()
func (*RegisterLEDResponse) ProtoReflect ¶
func (x *RegisterLEDResponse) ProtoReflect() protoreflect.Message
func (*RegisterLEDResponse) Reset ¶
func (x *RegisterLEDResponse) Reset()
func (*RegisterLEDResponse) String ¶
func (x *RegisterLEDResponse) String() string
type RequestMetadata ¶
type RequestMetadata struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // contains filtered or unexported fields }
func (*RequestMetadata) Descriptor
deprecated
func (*RequestMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.
func (*RequestMetadata) GetA ¶
func (x *RequestMetadata) GetA() string
func (*RequestMetadata) ProtoMessage ¶
func (*RequestMetadata) ProtoMessage()
func (*RequestMetadata) ProtoReflect ¶
func (x *RequestMetadata) ProtoReflect() protoreflect.Message
func (*RequestMetadata) Reset ¶
func (x *RequestMetadata) Reset()
func (*RequestMetadata) String ¶
func (x *RequestMetadata) String() string
type ResponseMetadata ¶
type ResponseMetadata struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResponseMetadata) Descriptor
deprecated
func (*ResponseMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ResponseMetadata.ProtoReflect.Descriptor instead.
func (*ResponseMetadata) GetCode ¶
func (x *ResponseMetadata) GetCode() int32
func (*ResponseMetadata) GetMessage ¶
func (x *ResponseMetadata) GetMessage() string
func (*ResponseMetadata) ProtoMessage ¶
func (*ResponseMetadata) ProtoMessage()
func (*ResponseMetadata) ProtoReflect ¶
func (x *ResponseMetadata) ProtoReflect() protoreflect.Message
func (*ResponseMetadata) Reset ¶
func (x *ResponseMetadata) Reset()
func (*ResponseMetadata) String ¶
func (x *ResponseMetadata) String() string
type SyncLEDsRequest ¶
type SyncLEDsRequest struct { Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` SourceIdentifier string `protobuf:"bytes,2,opt,name=sourceIdentifier,proto3" json:"sourceIdentifier,omitempty"` TargetIdentifier []string `protobuf:"bytes,3,rep,name=targetIdentifier,proto3" json:"targetIdentifier,omitempty"` // contains filtered or unexported fields }
func (*SyncLEDsRequest) Descriptor
deprecated
func (*SyncLEDsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncLEDsRequest.ProtoReflect.Descriptor instead.
func (*SyncLEDsRequest) GetMetadata ¶
func (x *SyncLEDsRequest) GetMetadata() *RequestMetadata
func (*SyncLEDsRequest) GetSourceIdentifier ¶
func (x *SyncLEDsRequest) GetSourceIdentifier() string
func (*SyncLEDsRequest) GetTargetIdentifier ¶
func (x *SyncLEDsRequest) GetTargetIdentifier() []string
func (*SyncLEDsRequest) ProtoMessage ¶
func (*SyncLEDsRequest) ProtoMessage()
func (*SyncLEDsRequest) ProtoReflect ¶
func (x *SyncLEDsRequest) ProtoReflect() protoreflect.Message
func (*SyncLEDsRequest) Reset ¶
func (x *SyncLEDsRequest) Reset()
func (*SyncLEDsRequest) String ¶
func (x *SyncLEDsRequest) String() string
type SyncLEDsResponse ¶
type SyncLEDsResponse struct { Metadata *ResponseMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*SyncLEDsResponse) Descriptor
deprecated
func (*SyncLEDsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncLEDsResponse.ProtoReflect.Descriptor instead.
func (*SyncLEDsResponse) GetMetadata ¶
func (x *SyncLEDsResponse) GetMetadata() *ResponseMetadata
func (*SyncLEDsResponse) ProtoMessage ¶
func (*SyncLEDsResponse) ProtoMessage()
func (*SyncLEDsResponse) ProtoReflect ¶
func (x *SyncLEDsResponse) ProtoReflect() protoreflect.Message
func (*SyncLEDsResponse) Reset ¶
func (x *SyncLEDsResponse) Reset()
func (*SyncLEDsResponse) String ¶
func (x *SyncLEDsResponse) String() string
type ToggleLEDRequest ¶
type ToggleLEDRequest struct { Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` // contains filtered or unexported fields }
func (*ToggleLEDRequest) Descriptor
deprecated
func (*ToggleLEDRequest) Descriptor() ([]byte, []int)
Deprecated: Use ToggleLEDRequest.ProtoReflect.Descriptor instead.
func (*ToggleLEDRequest) GetIpAddress ¶
func (x *ToggleLEDRequest) GetIpAddress() string
func (*ToggleLEDRequest) GetMetadata ¶
func (x *ToggleLEDRequest) GetMetadata() *RequestMetadata
func (*ToggleLEDRequest) ProtoMessage ¶
func (*ToggleLEDRequest) ProtoMessage()
func (*ToggleLEDRequest) ProtoReflect ¶
func (x *ToggleLEDRequest) ProtoReflect() protoreflect.Message
func (*ToggleLEDRequest) Reset ¶
func (x *ToggleLEDRequest) Reset()
func (*ToggleLEDRequest) String ¶
func (x *ToggleLEDRequest) String() string
type ToggleLEDResponse ¶
type ToggleLEDResponse struct { Metadata *ResponseMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*ToggleLEDResponse) Descriptor
deprecated
func (*ToggleLEDResponse) Descriptor() ([]byte, []int)
Deprecated: Use ToggleLEDResponse.ProtoReflect.Descriptor instead.
func (*ToggleLEDResponse) GetMetadata ¶
func (x *ToggleLEDResponse) GetMetadata() *ResponseMetadata
func (*ToggleLEDResponse) ProtoMessage ¶
func (*ToggleLEDResponse) ProtoMessage()
func (*ToggleLEDResponse) ProtoReflect ¶
func (x *ToggleLEDResponse) ProtoReflect() protoreflect.Message
func (*ToggleLEDResponse) Reset ¶
func (x *ToggleLEDResponse) Reset()
func (*ToggleLEDResponse) String ¶
func (x *ToggleLEDResponse) String() string
type UnimplementedLEDControllerServer ¶
type UnimplementedLEDControllerServer struct { }
UnimplementedLEDControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedLEDControllerServer) GetLEDs ¶
func (UnimplementedLEDControllerServer) GetLEDs(context.Context, *GetLEDsRequest) (*GetLEDsResponse, error)
func (UnimplementedLEDControllerServer) RegisterLED ¶
func (UnimplementedLEDControllerServer) RegisterLED(context.Context, *RegisterLEDRequest) (*RegisterLEDResponse, error)
func (UnimplementedLEDControllerServer) SyncLEDs ¶
func (UnimplementedLEDControllerServer) SyncLEDs(context.Context, *SyncLEDsRequest) (*SyncLEDsResponse, error)
func (UnimplementedLEDControllerServer) ToggleLED ¶
func (UnimplementedLEDControllerServer) ToggleLED(context.Context, *ToggleLEDRequest) (*ToggleLEDResponse, error)
func (UnimplementedLEDControllerServer) UpdateLEDs ¶
func (UnimplementedLEDControllerServer) UpdateLEDs(context.Context, *UpdateLEDsRequest) (*UpdateLEDsResponse, error)
type UnsafeLEDControllerServer ¶
type UnsafeLEDControllerServer interface {
// contains filtered or unexported methods
}
UnsafeLEDControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LEDControllerServer will result in compilation errors.
type UpdateLEDsRequest ¶
type UpdateLEDsRequest struct { Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Leds []*LED `protobuf:"bytes,2,rep,name=leds,proto3" json:"leds,omitempty"` // contains filtered or unexported fields }
func (*UpdateLEDsRequest) Descriptor
deprecated
func (*UpdateLEDsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLEDsRequest.ProtoReflect.Descriptor instead.
func (*UpdateLEDsRequest) GetLeds ¶
func (x *UpdateLEDsRequest) GetLeds() []*LED
func (*UpdateLEDsRequest) GetMetadata ¶
func (x *UpdateLEDsRequest) GetMetadata() *RequestMetadata
func (*UpdateLEDsRequest) ProtoMessage ¶
func (*UpdateLEDsRequest) ProtoMessage()
func (*UpdateLEDsRequest) ProtoReflect ¶
func (x *UpdateLEDsRequest) ProtoReflect() protoreflect.Message
func (*UpdateLEDsRequest) Reset ¶
func (x *UpdateLEDsRequest) Reset()
func (*UpdateLEDsRequest) String ¶
func (x *UpdateLEDsRequest) String() string
type UpdateLEDsResponse ¶
type UpdateLEDsResponse struct { Metadata *ResponseMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*UpdateLEDsResponse) Descriptor
deprecated
func (*UpdateLEDsResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLEDsResponse.ProtoReflect.Descriptor instead.
func (*UpdateLEDsResponse) GetMetadata ¶
func (x *UpdateLEDsResponse) GetMetadata() *ResponseMetadata
func (*UpdateLEDsResponse) ProtoMessage ¶
func (*UpdateLEDsResponse) ProtoMessage()
func (*UpdateLEDsResponse) ProtoReflect ¶
func (x *UpdateLEDsResponse) ProtoReflect() protoreflect.Message
func (*UpdateLEDsResponse) Reset ¶
func (x *UpdateLEDsResponse) Reset()
func (*UpdateLEDsResponse) String ¶
func (x *UpdateLEDsResponse) String() string
type WifiConfig ¶
type WifiConfig struct { Mode WifiMode `protobuf:"varint,1,opt,name=mode,proto3,enum=WifiMode" json:"mode,omitempty"` Ssid string `protobuf:"bytes,2,opt,name=ssid,proto3" json:"ssid,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Pk string `protobuf:"bytes,4,opt,name=pk,proto3" json:"pk,omitempty"` // contains filtered or unexported fields }
func (*WifiConfig) Descriptor
deprecated
func (*WifiConfig) Descriptor() ([]byte, []int)
Deprecated: Use WifiConfig.ProtoReflect.Descriptor instead.
func (*WifiConfig) GetMode ¶
func (x *WifiConfig) GetMode() WifiMode
func (*WifiConfig) GetPassword ¶
func (x *WifiConfig) GetPassword() string
func (*WifiConfig) GetPk ¶
func (x *WifiConfig) GetPk() string
func (*WifiConfig) GetSsid ¶
func (x *WifiConfig) GetSsid() string
func (*WifiConfig) ProtoMessage ¶
func (*WifiConfig) ProtoMessage()
func (*WifiConfig) ProtoReflect ¶
func (x *WifiConfig) ProtoReflect() protoreflect.Message
func (*WifiConfig) Reset ¶
func (x *WifiConfig) Reset()
func (*WifiConfig) String ¶
func (x *WifiConfig) String() string
type WifiMode ¶
type WifiMode int32
func (WifiMode) Descriptor ¶
func (WifiMode) Descriptor() protoreflect.EnumDescriptor
func (WifiMode) EnumDescriptor
deprecated
func (WifiMode) Number ¶
func (x WifiMode) Number() protoreflect.EnumNumber
func (WifiMode) Type ¶
func (WifiMode) Type() protoreflect.EnumType