Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKeyboardServiceServer(s grpc.ServiceRegistrar, srv KeyboardServiceServer)
- type BrightnessUpdateReply
- func (*BrightnessUpdateReply) Descriptor() ([]byte, []int)deprecated
- func (x *BrightnessUpdateReply) GetSuccess() bool
- func (*BrightnessUpdateReply) ProtoMessage()
- func (x *BrightnessUpdateReply) ProtoReflect() protoreflect.Message
- func (x *BrightnessUpdateReply) Reset()
- func (x *BrightnessUpdateReply) String() string
- type ConnectAnyKeyboardRequest
- type ConnectKeyboardReply
- func (*ConnectKeyboardReply) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectKeyboardReply) GetSuccess() bool
- func (*ConnectKeyboardReply) ProtoMessage()
- func (x *ConnectKeyboardReply) ProtoReflect() protoreflect.Message
- func (x *ConnectKeyboardReply) Reset()
- func (x *ConnectKeyboardReply) String() string
- type ConnectKeyboardRequest
- func (*ConnectKeyboardRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectKeyboardRequest) GetId() int32
- func (*ConnectKeyboardRequest) ProtoMessage()
- func (x *ConnectKeyboardRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectKeyboardRequest) Reset()
- func (x *ConnectKeyboardRequest) String() string
- type ConnectedKeyboard
- func (*ConnectedKeyboard) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectedKeyboard) GetCurrentLayer() int32
- func (x *ConnectedKeyboard) GetFirmwareVersion() string
- func (x *ConnectedKeyboard) GetFriendlyName() string
- func (*ConnectedKeyboard) ProtoMessage()
- func (x *ConnectedKeyboard) ProtoReflect() protoreflect.Message
- func (x *ConnectedKeyboard) Reset()
- func (x *ConnectedKeyboard) String() string
- type DecreaseBrightnessRequest
- type DisconnectKeyboardReply
- func (*DisconnectKeyboardReply) Descriptor() ([]byte, []int)deprecated
- func (x *DisconnectKeyboardReply) GetSuccess() bool
- func (*DisconnectKeyboardReply) ProtoMessage()
- func (x *DisconnectKeyboardReply) ProtoReflect() protoreflect.Message
- func (x *DisconnectKeyboardReply) Reset()
- func (x *DisconnectKeyboardReply) String() string
- type DisconnectKeyboardRequest
- type GetKeyboardsReply
- func (*GetKeyboardsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyboardsReply) GetKeyboards() []*Keyboard
- func (*GetKeyboardsReply) ProtoMessage()
- func (x *GetKeyboardsReply) ProtoReflect() protoreflect.Message
- func (x *GetKeyboardsReply) Reset()
- func (x *GetKeyboardsReply) String() string
- type GetKeyboardsRequest
- type GetStatusReply
- func (*GetStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatusReply) GetConnectedKeyboard() *ConnectedKeyboard
- func (x *GetStatusReply) GetKeymappVersion() string
- func (*GetStatusReply) ProtoMessage()
- func (x *GetStatusReply) ProtoReflect() protoreflect.Message
- func (x *GetStatusReply) Reset()
- func (x *GetStatusReply) String() string
- type GetStatusRequest
- type IncreaseBrightnessRequest
- type Keyboard
- func (*Keyboard) Descriptor() ([]byte, []int)deprecated
- func (x *Keyboard) GetFriendlyName() string
- func (x *Keyboard) GetId() int32
- func (x *Keyboard) GetIsConnected() bool
- func (*Keyboard) ProtoMessage()
- func (x *Keyboard) ProtoReflect() protoreflect.Message
- func (x *Keyboard) Reset()
- func (x *Keyboard) String() string
- type KeyboardServiceClient
- type KeyboardServiceServer
- type SetLayerReply
- type SetLayerRequest
- type SetRGBAllReply
- type SetRGBAllRequest
- func (*SetRGBAllRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRGBAllRequest) GetBlue() int32
- func (x *SetRGBAllRequest) GetGreen() int32
- func (x *SetRGBAllRequest) GetRed() int32
- func (x *SetRGBAllRequest) GetSustain() int32
- func (*SetRGBAllRequest) ProtoMessage()
- func (x *SetRGBAllRequest) ProtoReflect() protoreflect.Message
- func (x *SetRGBAllRequest) Reset()
- func (x *SetRGBAllRequest) String() string
- type SetRGBLedReply
- type SetRGBLedRequest
- func (*SetRGBLedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRGBLedRequest) GetBlue() int32
- func (x *SetRGBLedRequest) GetGreen() int32
- func (x *SetRGBLedRequest) GetLed() int32
- func (x *SetRGBLedRequest) GetRed() int32
- func (x *SetRGBLedRequest) GetSustain() int32
- func (*SetRGBLedRequest) ProtoMessage()
- func (x *SetRGBLedRequest) ProtoReflect() protoreflect.Message
- func (x *SetRGBLedRequest) Reset()
- func (x *SetRGBLedRequest) String() string
- type SetStatusLedReply
- type SetStatusLedRequest
- func (*SetStatusLedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetStatusLedRequest) GetLed() int32
- func (x *SetStatusLedRequest) GetOn() bool
- func (x *SetStatusLedRequest) GetSustain() int32
- func (*SetStatusLedRequest) ProtoMessage()
- func (x *SetStatusLedRequest) ProtoReflect() protoreflect.Message
- func (x *SetStatusLedRequest) Reset()
- func (x *SetStatusLedRequest) String() string
- type UnimplementedKeyboardServiceServer
- func (UnimplementedKeyboardServiceServer) ConnectAnyKeyboard(context.Context, *ConnectAnyKeyboardRequest) (*ConnectKeyboardReply, error)
- func (UnimplementedKeyboardServiceServer) ConnectKeyboard(context.Context, *ConnectKeyboardRequest) (*ConnectKeyboardReply, error)
- func (UnimplementedKeyboardServiceServer) DecreaseBrightness(context.Context, *DecreaseBrightnessRequest) (*BrightnessUpdateReply, error)
- func (UnimplementedKeyboardServiceServer) DisconnectKeyboard(context.Context, *DisconnectKeyboardRequest) (*DisconnectKeyboardReply, error)
- func (UnimplementedKeyboardServiceServer) GetKeyboards(context.Context, *GetKeyboardsRequest) (*GetKeyboardsReply, error)
- func (UnimplementedKeyboardServiceServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusReply, error)
- func (UnimplementedKeyboardServiceServer) IncreaseBrightness(context.Context, *IncreaseBrightnessRequest) (*BrightnessUpdateReply, error)
- func (UnimplementedKeyboardServiceServer) SetLayer(context.Context, *SetLayerRequest) (*SetLayerReply, error)
- func (UnimplementedKeyboardServiceServer) SetRGBAll(context.Context, *SetRGBAllRequest) (*SetRGBAllReply, error)
- func (UnimplementedKeyboardServiceServer) SetRGBLed(context.Context, *SetRGBLedRequest) (*SetRGBLedReply, error)
- func (UnimplementedKeyboardServiceServer) SetStatusLed(context.Context, *SetStatusLedRequest) (*SetStatusLedReply, error)
- func (UnimplementedKeyboardServiceServer) UnsetLayer(context.Context, *SetLayerRequest) (*SetLayerReply, error)
- type UnsafeKeyboardServiceServer
Constants ¶
const ( KeyboardService_GetStatus_FullMethodName = "/api.KeyboardService/GetStatus" KeyboardService_GetKeyboards_FullMethodName = "/api.KeyboardService/GetKeyboards" KeyboardService_ConnectKeyboard_FullMethodName = "/api.KeyboardService/ConnectKeyboard" KeyboardService_ConnectAnyKeyboard_FullMethodName = "/api.KeyboardService/ConnectAnyKeyboard" KeyboardService_DisconnectKeyboard_FullMethodName = "/api.KeyboardService/DisconnectKeyboard" KeyboardService_SetLayer_FullMethodName = "/api.KeyboardService/SetLayer" KeyboardService_UnsetLayer_FullMethodName = "/api.KeyboardService/UnsetLayer" KeyboardService_SetRGBLed_FullMethodName = "/api.KeyboardService/SetRGBLed" KeyboardService_SetRGBAll_FullMethodName = "/api.KeyboardService/SetRGBAll" KeyboardService_SetStatusLed_FullMethodName = "/api.KeyboardService/SetStatusLed" KeyboardService_IncreaseBrightness_FullMethodName = "/api.KeyboardService/IncreaseBrightness" KeyboardService_DecreaseBrightness_FullMethodName = "/api.KeyboardService/DecreaseBrightness" )
Variables ¶
var File_api_keymapp_proto protoreflect.FileDescriptor
var KeyboardService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.KeyboardService", HandlerType: (*KeyboardServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStatus", Handler: _KeyboardService_GetStatus_Handler, }, { MethodName: "GetKeyboards", Handler: _KeyboardService_GetKeyboards_Handler, }, { MethodName: "ConnectKeyboard", Handler: _KeyboardService_ConnectKeyboard_Handler, }, { MethodName: "ConnectAnyKeyboard", Handler: _KeyboardService_ConnectAnyKeyboard_Handler, }, { MethodName: "DisconnectKeyboard", Handler: _KeyboardService_DisconnectKeyboard_Handler, }, { MethodName: "SetLayer", Handler: _KeyboardService_SetLayer_Handler, }, { MethodName: "UnsetLayer", Handler: _KeyboardService_UnsetLayer_Handler, }, { MethodName: "SetRGBLed", Handler: _KeyboardService_SetRGBLed_Handler, }, { MethodName: "SetRGBAll", Handler: _KeyboardService_SetRGBAll_Handler, }, { MethodName: "SetStatusLed", Handler: _KeyboardService_SetStatusLed_Handler, }, { MethodName: "IncreaseBrightness", Handler: _KeyboardService_IncreaseBrightness_Handler, }, { MethodName: "DecreaseBrightness", Handler: _KeyboardService_DecreaseBrightness_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/keymapp.proto", }
KeyboardService_ServiceDesc is the grpc.ServiceDesc for KeyboardService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyboardServiceServer ¶
func RegisterKeyboardServiceServer(s grpc.ServiceRegistrar, srv KeyboardServiceServer)
Types ¶
type BrightnessUpdateReply ¶
type BrightnessUpdateReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*BrightnessUpdateReply) Descriptor
deprecated
func (*BrightnessUpdateReply) Descriptor() ([]byte, []int)
Deprecated: Use BrightnessUpdateReply.ProtoReflect.Descriptor instead.
func (*BrightnessUpdateReply) GetSuccess ¶
func (x *BrightnessUpdateReply) GetSuccess() bool
func (*BrightnessUpdateReply) ProtoMessage ¶
func (*BrightnessUpdateReply) ProtoMessage()
func (*BrightnessUpdateReply) ProtoReflect ¶
func (x *BrightnessUpdateReply) ProtoReflect() protoreflect.Message
func (*BrightnessUpdateReply) Reset ¶
func (x *BrightnessUpdateReply) Reset()
func (*BrightnessUpdateReply) String ¶
func (x *BrightnessUpdateReply) String() string
type ConnectAnyKeyboardRequest ¶
type ConnectAnyKeyboardRequest struct {
// contains filtered or unexported fields
}
func (*ConnectAnyKeyboardRequest) Descriptor
deprecated
func (*ConnectAnyKeyboardRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectAnyKeyboardRequest.ProtoReflect.Descriptor instead.
func (*ConnectAnyKeyboardRequest) ProtoMessage ¶
func (*ConnectAnyKeyboardRequest) ProtoMessage()
func (*ConnectAnyKeyboardRequest) ProtoReflect ¶
func (x *ConnectAnyKeyboardRequest) ProtoReflect() protoreflect.Message
func (*ConnectAnyKeyboardRequest) Reset ¶
func (x *ConnectAnyKeyboardRequest) Reset()
func (*ConnectAnyKeyboardRequest) String ¶
func (x *ConnectAnyKeyboardRequest) String() string
type ConnectKeyboardReply ¶
type ConnectKeyboardReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*ConnectKeyboardReply) Descriptor
deprecated
func (*ConnectKeyboardReply) Descriptor() ([]byte, []int)
Deprecated: Use ConnectKeyboardReply.ProtoReflect.Descriptor instead.
func (*ConnectKeyboardReply) GetSuccess ¶
func (x *ConnectKeyboardReply) GetSuccess() bool
func (*ConnectKeyboardReply) ProtoMessage ¶
func (*ConnectKeyboardReply) ProtoMessage()
func (*ConnectKeyboardReply) ProtoReflect ¶
func (x *ConnectKeyboardReply) ProtoReflect() protoreflect.Message
func (*ConnectKeyboardReply) Reset ¶
func (x *ConnectKeyboardReply) Reset()
func (*ConnectKeyboardReply) String ¶
func (x *ConnectKeyboardReply) String() string
type ConnectKeyboardRequest ¶
type ConnectKeyboardRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ConnectKeyboardRequest) Descriptor
deprecated
func (*ConnectKeyboardRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectKeyboardRequest.ProtoReflect.Descriptor instead.
func (*ConnectKeyboardRequest) GetId ¶
func (x *ConnectKeyboardRequest) GetId() int32
func (*ConnectKeyboardRequest) ProtoMessage ¶
func (*ConnectKeyboardRequest) ProtoMessage()
func (*ConnectKeyboardRequest) ProtoReflect ¶
func (x *ConnectKeyboardRequest) ProtoReflect() protoreflect.Message
func (*ConnectKeyboardRequest) Reset ¶
func (x *ConnectKeyboardRequest) Reset()
func (*ConnectKeyboardRequest) String ¶
func (x *ConnectKeyboardRequest) String() string
type ConnectedKeyboard ¶
type ConnectedKeyboard struct { FriendlyName string `protobuf:"bytes,1,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"` FirmwareVersion string `protobuf:"bytes,2,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"` CurrentLayer int32 `protobuf:"varint,3,opt,name=current_layer,json=currentLayer,proto3" json:"current_layer,omitempty"` // contains filtered or unexported fields }
func (*ConnectedKeyboard) Descriptor
deprecated
func (*ConnectedKeyboard) Descriptor() ([]byte, []int)
Deprecated: Use ConnectedKeyboard.ProtoReflect.Descriptor instead.
func (*ConnectedKeyboard) GetCurrentLayer ¶
func (x *ConnectedKeyboard) GetCurrentLayer() int32
func (*ConnectedKeyboard) GetFirmwareVersion ¶
func (x *ConnectedKeyboard) GetFirmwareVersion() string
func (*ConnectedKeyboard) GetFriendlyName ¶
func (x *ConnectedKeyboard) GetFriendlyName() string
func (*ConnectedKeyboard) ProtoMessage ¶
func (*ConnectedKeyboard) ProtoMessage()
func (*ConnectedKeyboard) ProtoReflect ¶
func (x *ConnectedKeyboard) ProtoReflect() protoreflect.Message
func (*ConnectedKeyboard) Reset ¶
func (x *ConnectedKeyboard) Reset()
func (*ConnectedKeyboard) String ¶
func (x *ConnectedKeyboard) String() string
type DecreaseBrightnessRequest ¶
type DecreaseBrightnessRequest struct {
// contains filtered or unexported fields
}
func (*DecreaseBrightnessRequest) Descriptor
deprecated
func (*DecreaseBrightnessRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseBrightnessRequest.ProtoReflect.Descriptor instead.
func (*DecreaseBrightnessRequest) ProtoMessage ¶
func (*DecreaseBrightnessRequest) ProtoMessage()
func (*DecreaseBrightnessRequest) ProtoReflect ¶
func (x *DecreaseBrightnessRequest) ProtoReflect() protoreflect.Message
func (*DecreaseBrightnessRequest) Reset ¶
func (x *DecreaseBrightnessRequest) Reset()
func (*DecreaseBrightnessRequest) String ¶
func (x *DecreaseBrightnessRequest) String() string
type DisconnectKeyboardReply ¶
type DisconnectKeyboardReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DisconnectKeyboardReply) Descriptor
deprecated
func (*DisconnectKeyboardReply) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectKeyboardReply.ProtoReflect.Descriptor instead.
func (*DisconnectKeyboardReply) GetSuccess ¶
func (x *DisconnectKeyboardReply) GetSuccess() bool
func (*DisconnectKeyboardReply) ProtoMessage ¶
func (*DisconnectKeyboardReply) ProtoMessage()
func (*DisconnectKeyboardReply) ProtoReflect ¶
func (x *DisconnectKeyboardReply) ProtoReflect() protoreflect.Message
func (*DisconnectKeyboardReply) Reset ¶
func (x *DisconnectKeyboardReply) Reset()
func (*DisconnectKeyboardReply) String ¶
func (x *DisconnectKeyboardReply) String() string
type DisconnectKeyboardRequest ¶
type DisconnectKeyboardRequest struct {
// contains filtered or unexported fields
}
func (*DisconnectKeyboardRequest) Descriptor
deprecated
func (*DisconnectKeyboardRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectKeyboardRequest.ProtoReflect.Descriptor instead.
func (*DisconnectKeyboardRequest) ProtoMessage ¶
func (*DisconnectKeyboardRequest) ProtoMessage()
func (*DisconnectKeyboardRequest) ProtoReflect ¶
func (x *DisconnectKeyboardRequest) ProtoReflect() protoreflect.Message
func (*DisconnectKeyboardRequest) Reset ¶
func (x *DisconnectKeyboardRequest) Reset()
func (*DisconnectKeyboardRequest) String ¶
func (x *DisconnectKeyboardRequest) String() string
type GetKeyboardsReply ¶
type GetKeyboardsReply struct { Keyboards []*Keyboard `protobuf:"bytes,1,rep,name=keyboards,proto3" json:"keyboards,omitempty"` // contains filtered or unexported fields }
func (*GetKeyboardsReply) Descriptor
deprecated
func (*GetKeyboardsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyboardsReply.ProtoReflect.Descriptor instead.
func (*GetKeyboardsReply) GetKeyboards ¶
func (x *GetKeyboardsReply) GetKeyboards() []*Keyboard
func (*GetKeyboardsReply) ProtoMessage ¶
func (*GetKeyboardsReply) ProtoMessage()
func (*GetKeyboardsReply) ProtoReflect ¶
func (x *GetKeyboardsReply) ProtoReflect() protoreflect.Message
func (*GetKeyboardsReply) Reset ¶
func (x *GetKeyboardsReply) Reset()
func (*GetKeyboardsReply) String ¶
func (x *GetKeyboardsReply) String() string
type GetKeyboardsRequest ¶
type GetKeyboardsRequest struct {
// contains filtered or unexported fields
}
func (*GetKeyboardsRequest) Descriptor
deprecated
func (*GetKeyboardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyboardsRequest.ProtoReflect.Descriptor instead.
func (*GetKeyboardsRequest) ProtoMessage ¶
func (*GetKeyboardsRequest) ProtoMessage()
func (*GetKeyboardsRequest) ProtoReflect ¶
func (x *GetKeyboardsRequest) ProtoReflect() protoreflect.Message
func (*GetKeyboardsRequest) Reset ¶
func (x *GetKeyboardsRequest) Reset()
func (*GetKeyboardsRequest) String ¶
func (x *GetKeyboardsRequest) String() string
type GetStatusReply ¶
type GetStatusReply struct { KeymappVersion string `protobuf:"bytes,1,opt,name=keymapp_version,json=keymappVersion,proto3" json:"keymapp_version,omitempty"` ConnectedKeyboard *ConnectedKeyboard `protobuf:"bytes,2,opt,name=connected_keyboard,json=connectedKeyboard,proto3" json:"connected_keyboard,omitempty"` // contains filtered or unexported fields }
func (*GetStatusReply) Descriptor
deprecated
func (*GetStatusReply) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusReply.ProtoReflect.Descriptor instead.
func (*GetStatusReply) GetConnectedKeyboard ¶
func (x *GetStatusReply) GetConnectedKeyboard() *ConnectedKeyboard
func (*GetStatusReply) GetKeymappVersion ¶
func (x *GetStatusReply) GetKeymappVersion() string
func (*GetStatusReply) ProtoMessage ¶
func (*GetStatusReply) ProtoMessage()
func (*GetStatusReply) ProtoReflect ¶
func (x *GetStatusReply) ProtoReflect() protoreflect.Message
func (*GetStatusReply) Reset ¶
func (x *GetStatusReply) Reset()
func (*GetStatusReply) String ¶
func (x *GetStatusReply) String() string
type GetStatusRequest ¶
type GetStatusRequest struct {
// contains filtered or unexported fields
}
func (*GetStatusRequest) Descriptor
deprecated
func (*GetStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.
func (*GetStatusRequest) ProtoMessage ¶
func (*GetStatusRequest) ProtoMessage()
func (*GetStatusRequest) ProtoReflect ¶
func (x *GetStatusRequest) ProtoReflect() protoreflect.Message
func (*GetStatusRequest) Reset ¶
func (x *GetStatusRequest) Reset()
func (*GetStatusRequest) String ¶
func (x *GetStatusRequest) String() string
type IncreaseBrightnessRequest ¶
type IncreaseBrightnessRequest struct {
// contains filtered or unexported fields
}
func (*IncreaseBrightnessRequest) Descriptor
deprecated
func (*IncreaseBrightnessRequest) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseBrightnessRequest.ProtoReflect.Descriptor instead.
func (*IncreaseBrightnessRequest) ProtoMessage ¶
func (*IncreaseBrightnessRequest) ProtoMessage()
func (*IncreaseBrightnessRequest) ProtoReflect ¶
func (x *IncreaseBrightnessRequest) ProtoReflect() protoreflect.Message
func (*IncreaseBrightnessRequest) Reset ¶
func (x *IncreaseBrightnessRequest) Reset()
func (*IncreaseBrightnessRequest) String ¶
func (x *IncreaseBrightnessRequest) String() string
type Keyboard ¶
type Keyboard struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FriendlyName string `protobuf:"bytes,2,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"` IsConnected bool `protobuf:"varint,3,opt,name=is_connected,json=isConnected,proto3" json:"is_connected,omitempty"` // contains filtered or unexported fields }
func (*Keyboard) Descriptor
deprecated
func (*Keyboard) GetFriendlyName ¶
func (*Keyboard) GetIsConnected ¶
func (*Keyboard) ProtoMessage ¶
func (*Keyboard) ProtoMessage()
func (*Keyboard) ProtoReflect ¶
func (x *Keyboard) ProtoReflect() protoreflect.Message
type KeyboardServiceClient ¶
type KeyboardServiceClient interface { GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusReply, error) // Returns a list of all detected keyboards. GetKeyboards(ctx context.Context, in *GetKeyboardsRequest, opts ...grpc.CallOption) (*GetKeyboardsReply, error) // Connects to a keyboard using given an id retrieved from GetKeyboards. ConnectKeyboard(ctx context.Context, in *ConnectKeyboardRequest, opts ...grpc.CallOption) (*ConnectKeyboardReply, error) // Connects to the first available keyboard. ConnectAnyKeyboard(ctx context.Context, in *ConnectAnyKeyboardRequest, opts ...grpc.CallOption) (*ConnectKeyboardReply, error) // Disconnects to a keyboard using given an id retrieved from GetKeyboards. DisconnectKeyboard(ctx context.Context, in *DisconnectKeyboardRequest, opts ...grpc.CallOption) (*DisconnectKeyboardReply, error) // Sets the active layer of a connected keyboard. SetLayer(ctx context.Context, in *SetLayerRequest, opts ...grpc.CallOption) (*SetLayerReply, error) // Unsets a previously set layer. UnsetLayer(ctx context.Context, in *SetLayerRequest, opts ...grpc.CallOption) (*SetLayerReply, error) // Sets the color of a specific LED on the keyboard. SetRGBLed(ctx context.Context, in *SetRGBLedRequest, opts ...grpc.CallOption) (*SetRGBLedReply, error) // Sets the color of all LEDs on the keyboard. SetRGBAll(ctx context.Context, in *SetRGBAllRequest, opts ...grpc.CallOption) (*SetRGBAllReply, error) // Sets the status LED on the keyboard. SetStatusLed(ctx context.Context, in *SetStatusLedRequest, opts ...grpc.CallOption) (*SetStatusLedReply, error) // Increases the brightness of the keyboard. IncreaseBrightness(ctx context.Context, in *IncreaseBrightnessRequest, opts ...grpc.CallOption) (*BrightnessUpdateReply, error) // Decreases the brightness of the keyboard. DecreaseBrightness(ctx context.Context, in *DecreaseBrightnessRequest, opts ...grpc.CallOption) (*BrightnessUpdateReply, error) }
KeyboardServiceClient is the client API for KeyboardService 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 NewKeyboardServiceClient ¶
func NewKeyboardServiceClient(cc grpc.ClientConnInterface) KeyboardServiceClient
type KeyboardServiceServer ¶
type KeyboardServiceServer interface { GetStatus(context.Context, *GetStatusRequest) (*GetStatusReply, error) // Returns a list of all detected keyboards. GetKeyboards(context.Context, *GetKeyboardsRequest) (*GetKeyboardsReply, error) // Connects to a keyboard using given an id retrieved from GetKeyboards. ConnectKeyboard(context.Context, *ConnectKeyboardRequest) (*ConnectKeyboardReply, error) // Connects to the first available keyboard. ConnectAnyKeyboard(context.Context, *ConnectAnyKeyboardRequest) (*ConnectKeyboardReply, error) // Disconnects to a keyboard using given an id retrieved from GetKeyboards. DisconnectKeyboard(context.Context, *DisconnectKeyboardRequest) (*DisconnectKeyboardReply, error) // Sets the active layer of a connected keyboard. SetLayer(context.Context, *SetLayerRequest) (*SetLayerReply, error) // Unsets a previously set layer. UnsetLayer(context.Context, *SetLayerRequest) (*SetLayerReply, error) // Sets the color of a specific LED on the keyboard. SetRGBLed(context.Context, *SetRGBLedRequest) (*SetRGBLedReply, error) // Sets the color of all LEDs on the keyboard. SetRGBAll(context.Context, *SetRGBAllRequest) (*SetRGBAllReply, error) // Sets the status LED on the keyboard. SetStatusLed(context.Context, *SetStatusLedRequest) (*SetStatusLedReply, error) // Increases the brightness of the keyboard. IncreaseBrightness(context.Context, *IncreaseBrightnessRequest) (*BrightnessUpdateReply, error) // Decreases the brightness of the keyboard. DecreaseBrightness(context.Context, *DecreaseBrightnessRequest) (*BrightnessUpdateReply, error) // contains filtered or unexported methods }
KeyboardServiceServer is the server API for KeyboardService service. All implementations must embed UnimplementedKeyboardServiceServer for forward compatibility.
type SetLayerReply ¶
type SetLayerReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*SetLayerReply) Descriptor
deprecated
func (*SetLayerReply) Descriptor() ([]byte, []int)
Deprecated: Use SetLayerReply.ProtoReflect.Descriptor instead.
func (*SetLayerReply) GetSuccess ¶
func (x *SetLayerReply) GetSuccess() bool
func (*SetLayerReply) ProtoMessage ¶
func (*SetLayerReply) ProtoMessage()
func (*SetLayerReply) ProtoReflect ¶
func (x *SetLayerReply) ProtoReflect() protoreflect.Message
func (*SetLayerReply) Reset ¶
func (x *SetLayerReply) Reset()
func (*SetLayerReply) String ¶
func (x *SetLayerReply) String() string
type SetLayerRequest ¶
type SetLayerRequest struct { Layer int32 `protobuf:"varint,1,opt,name=layer,proto3" json:"layer,omitempty"` // contains filtered or unexported fields }
func (*SetLayerRequest) Descriptor
deprecated
func (*SetLayerRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetLayerRequest.ProtoReflect.Descriptor instead.
func (*SetLayerRequest) GetLayer ¶
func (x *SetLayerRequest) GetLayer() int32
func (*SetLayerRequest) ProtoMessage ¶
func (*SetLayerRequest) ProtoMessage()
func (*SetLayerRequest) ProtoReflect ¶
func (x *SetLayerRequest) ProtoReflect() protoreflect.Message
func (*SetLayerRequest) Reset ¶
func (x *SetLayerRequest) Reset()
func (*SetLayerRequest) String ¶
func (x *SetLayerRequest) String() string
type SetRGBAllReply ¶
type SetRGBAllReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*SetRGBAllReply) Descriptor
deprecated
func (*SetRGBAllReply) Descriptor() ([]byte, []int)
Deprecated: Use SetRGBAllReply.ProtoReflect.Descriptor instead.
func (*SetRGBAllReply) GetSuccess ¶
func (x *SetRGBAllReply) GetSuccess() bool
func (*SetRGBAllReply) ProtoMessage ¶
func (*SetRGBAllReply) ProtoMessage()
func (*SetRGBAllReply) ProtoReflect ¶
func (x *SetRGBAllReply) ProtoReflect() protoreflect.Message
func (*SetRGBAllReply) Reset ¶
func (x *SetRGBAllReply) Reset()
func (*SetRGBAllReply) String ¶
func (x *SetRGBAllReply) String() string
type SetRGBAllRequest ¶
type SetRGBAllRequest struct { Red int32 `protobuf:"varint,1,opt,name=red,proto3" json:"red,omitempty"` Green int32 `protobuf:"varint,2,opt,name=green,proto3" json:"green,omitempty"` Blue int32 `protobuf:"varint,3,opt,name=blue,proto3" json:"blue,omitempty"` Sustain int32 `protobuf:"varint,4,opt,name=sustain,proto3" json:"sustain,omitempty"` // contains filtered or unexported fields }
func (*SetRGBAllRequest) Descriptor
deprecated
func (*SetRGBAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRGBAllRequest.ProtoReflect.Descriptor instead.
func (*SetRGBAllRequest) GetBlue ¶
func (x *SetRGBAllRequest) GetBlue() int32
func (*SetRGBAllRequest) GetGreen ¶
func (x *SetRGBAllRequest) GetGreen() int32
func (*SetRGBAllRequest) GetRed ¶
func (x *SetRGBAllRequest) GetRed() int32
func (*SetRGBAllRequest) GetSustain ¶
func (x *SetRGBAllRequest) GetSustain() int32
func (*SetRGBAllRequest) ProtoMessage ¶
func (*SetRGBAllRequest) ProtoMessage()
func (*SetRGBAllRequest) ProtoReflect ¶
func (x *SetRGBAllRequest) ProtoReflect() protoreflect.Message
func (*SetRGBAllRequest) Reset ¶
func (x *SetRGBAllRequest) Reset()
func (*SetRGBAllRequest) String ¶
func (x *SetRGBAllRequest) String() string
type SetRGBLedReply ¶
type SetRGBLedReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*SetRGBLedReply) Descriptor
deprecated
func (*SetRGBLedReply) Descriptor() ([]byte, []int)
Deprecated: Use SetRGBLedReply.ProtoReflect.Descriptor instead.
func (*SetRGBLedReply) GetSuccess ¶
func (x *SetRGBLedReply) GetSuccess() bool
func (*SetRGBLedReply) ProtoMessage ¶
func (*SetRGBLedReply) ProtoMessage()
func (*SetRGBLedReply) ProtoReflect ¶
func (x *SetRGBLedReply) ProtoReflect() protoreflect.Message
func (*SetRGBLedReply) Reset ¶
func (x *SetRGBLedReply) Reset()
func (*SetRGBLedReply) String ¶
func (x *SetRGBLedReply) String() string
type SetRGBLedRequest ¶
type SetRGBLedRequest struct { Led int32 `protobuf:"varint,1,opt,name=led,proto3" json:"led,omitempty"` Red int32 `protobuf:"varint,2,opt,name=red,proto3" json:"red,omitempty"` Green int32 `protobuf:"varint,3,opt,name=green,proto3" json:"green,omitempty"` Blue int32 `protobuf:"varint,4,opt,name=blue,proto3" json:"blue,omitempty"` Sustain int32 `protobuf:"varint,5,opt,name=sustain,proto3" json:"sustain,omitempty"` // contains filtered or unexported fields }
func (*SetRGBLedRequest) Descriptor
deprecated
func (*SetRGBLedRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRGBLedRequest.ProtoReflect.Descriptor instead.
func (*SetRGBLedRequest) GetBlue ¶
func (x *SetRGBLedRequest) GetBlue() int32
func (*SetRGBLedRequest) GetGreen ¶
func (x *SetRGBLedRequest) GetGreen() int32
func (*SetRGBLedRequest) GetLed ¶
func (x *SetRGBLedRequest) GetLed() int32
func (*SetRGBLedRequest) GetRed ¶
func (x *SetRGBLedRequest) GetRed() int32
func (*SetRGBLedRequest) GetSustain ¶
func (x *SetRGBLedRequest) GetSustain() int32
func (*SetRGBLedRequest) ProtoMessage ¶
func (*SetRGBLedRequest) ProtoMessage()
func (*SetRGBLedRequest) ProtoReflect ¶
func (x *SetRGBLedRequest) ProtoReflect() protoreflect.Message
func (*SetRGBLedRequest) Reset ¶
func (x *SetRGBLedRequest) Reset()
func (*SetRGBLedRequest) String ¶
func (x *SetRGBLedRequest) String() string
type SetStatusLedReply ¶
type SetStatusLedReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*SetStatusLedReply) Descriptor
deprecated
func (*SetStatusLedReply) Descriptor() ([]byte, []int)
Deprecated: Use SetStatusLedReply.ProtoReflect.Descriptor instead.
func (*SetStatusLedReply) GetSuccess ¶
func (x *SetStatusLedReply) GetSuccess() bool
func (*SetStatusLedReply) ProtoMessage ¶
func (*SetStatusLedReply) ProtoMessage()
func (*SetStatusLedReply) ProtoReflect ¶
func (x *SetStatusLedReply) ProtoReflect() protoreflect.Message
func (*SetStatusLedReply) Reset ¶
func (x *SetStatusLedReply) Reset()
func (*SetStatusLedReply) String ¶
func (x *SetStatusLedReply) String() string
type SetStatusLedRequest ¶
type SetStatusLedRequest struct { Led int32 `protobuf:"varint,1,opt,name=led,proto3" json:"led,omitempty"` On bool `protobuf:"varint,2,opt,name=on,proto3" json:"on,omitempty"` Sustain int32 `protobuf:"varint,3,opt,name=sustain,proto3" json:"sustain,omitempty"` // contains filtered or unexported fields }
func (*SetStatusLedRequest) Descriptor
deprecated
func (*SetStatusLedRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetStatusLedRequest.ProtoReflect.Descriptor instead.
func (*SetStatusLedRequest) GetLed ¶
func (x *SetStatusLedRequest) GetLed() int32
func (*SetStatusLedRequest) GetOn ¶
func (x *SetStatusLedRequest) GetOn() bool
func (*SetStatusLedRequest) GetSustain ¶
func (x *SetStatusLedRequest) GetSustain() int32
func (*SetStatusLedRequest) ProtoMessage ¶
func (*SetStatusLedRequest) ProtoMessage()
func (*SetStatusLedRequest) ProtoReflect ¶
func (x *SetStatusLedRequest) ProtoReflect() protoreflect.Message
func (*SetStatusLedRequest) Reset ¶
func (x *SetStatusLedRequest) Reset()
func (*SetStatusLedRequest) String ¶
func (x *SetStatusLedRequest) String() string
type UnimplementedKeyboardServiceServer ¶
type UnimplementedKeyboardServiceServer struct{}
UnimplementedKeyboardServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedKeyboardServiceServer) ConnectAnyKeyboard ¶
func (UnimplementedKeyboardServiceServer) ConnectAnyKeyboard(context.Context, *ConnectAnyKeyboardRequest) (*ConnectKeyboardReply, error)
func (UnimplementedKeyboardServiceServer) ConnectKeyboard ¶
func (UnimplementedKeyboardServiceServer) ConnectKeyboard(context.Context, *ConnectKeyboardRequest) (*ConnectKeyboardReply, error)
func (UnimplementedKeyboardServiceServer) DecreaseBrightness ¶
func (UnimplementedKeyboardServiceServer) DecreaseBrightness(context.Context, *DecreaseBrightnessRequest) (*BrightnessUpdateReply, error)
func (UnimplementedKeyboardServiceServer) DisconnectKeyboard ¶
func (UnimplementedKeyboardServiceServer) DisconnectKeyboard(context.Context, *DisconnectKeyboardRequest) (*DisconnectKeyboardReply, error)
func (UnimplementedKeyboardServiceServer) GetKeyboards ¶
func (UnimplementedKeyboardServiceServer) GetKeyboards(context.Context, *GetKeyboardsRequest) (*GetKeyboardsReply, error)
func (UnimplementedKeyboardServiceServer) GetStatus ¶
func (UnimplementedKeyboardServiceServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusReply, error)
func (UnimplementedKeyboardServiceServer) IncreaseBrightness ¶
func (UnimplementedKeyboardServiceServer) IncreaseBrightness(context.Context, *IncreaseBrightnessRequest) (*BrightnessUpdateReply, error)
func (UnimplementedKeyboardServiceServer) SetLayer ¶
func (UnimplementedKeyboardServiceServer) SetLayer(context.Context, *SetLayerRequest) (*SetLayerReply, error)
func (UnimplementedKeyboardServiceServer) SetRGBAll ¶
func (UnimplementedKeyboardServiceServer) SetRGBAll(context.Context, *SetRGBAllRequest) (*SetRGBAllReply, error)
func (UnimplementedKeyboardServiceServer) SetRGBLed ¶
func (UnimplementedKeyboardServiceServer) SetRGBLed(context.Context, *SetRGBLedRequest) (*SetRGBLedReply, error)
func (UnimplementedKeyboardServiceServer) SetStatusLed ¶
func (UnimplementedKeyboardServiceServer) SetStatusLed(context.Context, *SetStatusLedRequest) (*SetStatusLedReply, error)
func (UnimplementedKeyboardServiceServer) UnsetLayer ¶
func (UnimplementedKeyboardServiceServer) UnsetLayer(context.Context, *SetLayerRequest) (*SetLayerReply, error)
type UnsafeKeyboardServiceServer ¶
type UnsafeKeyboardServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKeyboardServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyboardServiceServer will result in compilation errors.