Documentation ¶
Index ¶
- type BatteryServer
- func (b *BatteryServer) GetCurrentLimit(ctx context.Context, _ *empty.Empty) (*protocol.BatteryChargeLimitResponse, error)
- func (b *BatteryServer) HotReload(ctrl *battery.ChargeLimit)
- func (b *BatteryServer) Set(ctx context.Context, req *protocol.SetBatteryLimitRequest) (*protocol.BatteryChargeLimitResponse, error)
- type ConfigListServer
- func (f *ConfigListServer) Apply() error
- func (f *ConfigListServer) Close() error
- func (f *ConfigListServer) GetCurrentConfigs(ctx context.Context, req *emptypb.Empty) (*protocol.SetConfigsResponse, error)
- func (f *ConfigListServer) HotReload(u []announcement.Updatable)
- func (f *ConfigListServer) Load(v []byte) error
- func (f *ConfigListServer) Name() string
- func (f *ConfigListServer) Set(ctx context.Context, req *protocol.SetConfigsRequest) (*protocol.SetConfigsResponse, error)
- func (f *ConfigListServer) Value() []byte
- type KeyboardServer
- func (k *KeyboardServer) Change(ctx context.Context, req *protocol.ChangeKeyboardBrightnessRequest) (*protocol.KeyboardBrightnessResponse, error)
- func (k *KeyboardServer) GetCurrentBrightness(ctx context.Context, _ *empty.Empty) (*protocol.KeyboardBrightnessResponse, error)
- func (k *KeyboardServer) HotReload(ctrl *keyboard.Control)
- func (k *KeyboardServer) Set(ctx context.Context, req *protocol.SetKeyboardBrightnessRequest) (*protocol.KeyboardBrightnessResponse, error)
- type ManagerRequestType
- type ManagerServer
- func (m *ManagerServer) Apply() error
- func (m *ManagerServer) Close() error
- func (m *ManagerServer) Control(ctx context.Context, req *protocol.ManagerControlRequest) (*protocol.ManagerControlResponse, error)
- func (m *ManagerServer) GetCurrentAutoStart(ctx context.Context, req *emptypb.Empty) (*protocol.ManagerAutoStartResponse, error)
- func (m *ManagerServer) GetCurrentState(ctx context.Context, req *emptypb.Empty) (*protocol.ManagerControlResponse, error)
- func (m *ManagerServer) Load(v []byte) error
- func (m *ManagerServer) Name() string
- func (m *ManagerServer) SetAutoStart(ctx context.Context, req *protocol.ManagerAutoStartRequest) (*protocol.ManagerAutoStartResponse, error)
- func (m *ManagerServer) Value() []byte
- type ManagerSupervisorRequest
- type ManagerSupervisorResponse
- type ThermalServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatteryServer ¶
type BatteryServer struct { protocol.UnimplementedBatteryChargeLimitServer // contains filtered or unexported fields }
func RegisterBatteryChargeLimitServer ¶
func RegisterBatteryChargeLimitServer(s *grpc.Server, ctrl *battery.ChargeLimit) *BatteryServer
func (*BatteryServer) GetCurrentLimit ¶
func (b *BatteryServer) GetCurrentLimit(ctx context.Context, _ *empty.Empty) (*protocol.BatteryChargeLimitResponse, error)
func (*BatteryServer) HotReload ¶
func (b *BatteryServer) HotReload(ctrl *battery.ChargeLimit)
func (*BatteryServer) Set ¶
func (b *BatteryServer) Set(ctx context.Context, req *protocol.SetBatteryLimitRequest) (*protocol.BatteryChargeLimitResponse, error)
type ConfigListServer ¶
type ConfigListServer struct { protocol.UnimplementedConfigListServer // contains filtered or unexported fields }
func RegisterConfigListServer ¶
func RegisterConfigListServer(s *grpc.Server, u []announcement.Updatable) *ConfigListServer
func (*ConfigListServer) Apply ¶
func (f *ConfigListServer) Apply() error
func (*ConfigListServer) Close ¶
func (f *ConfigListServer) Close() error
func (*ConfigListServer) GetCurrentConfigs ¶
func (f *ConfigListServer) GetCurrentConfigs(ctx context.Context, req *emptypb.Empty) (*protocol.SetConfigsResponse, error)
func (*ConfigListServer) HotReload ¶
func (f *ConfigListServer) HotReload(u []announcement.Updatable)
func (*ConfigListServer) Load ¶
func (f *ConfigListServer) Load(v []byte) error
func (*ConfigListServer) Name ¶
func (f *ConfigListServer) Name() string
func (*ConfigListServer) Set ¶
func (f *ConfigListServer) Set(ctx context.Context, req *protocol.SetConfigsRequest) (*protocol.SetConfigsResponse, error)
func (*ConfigListServer) Value ¶
func (f *ConfigListServer) Value() []byte
type KeyboardServer ¶
type KeyboardServer struct { protocol.UnimplementedKeyboardBrightnessServer // contains filtered or unexported fields }
func RegisterKeyboardServer ¶
func RegisterKeyboardServer(s *grpc.Server, ctrl *keyboard.Control) *KeyboardServer
func (*KeyboardServer) Change ¶
func (k *KeyboardServer) Change(ctx context.Context, req *protocol.ChangeKeyboardBrightnessRequest) (*protocol.KeyboardBrightnessResponse, error)
func (*KeyboardServer) GetCurrentBrightness ¶
func (k *KeyboardServer) GetCurrentBrightness(ctx context.Context, _ *empty.Empty) (*protocol.KeyboardBrightnessResponse, error)
func (*KeyboardServer) HotReload ¶
func (k *KeyboardServer) HotReload(ctrl *keyboard.Control)
func (*KeyboardServer) Set ¶
func (k *KeyboardServer) Set(ctx context.Context, req *protocol.SetKeyboardBrightnessRequest) (*protocol.KeyboardBrightnessResponse, error)
type ManagerRequestType ¶
type ManagerRequestType int
const ( RequestCheckState ManagerRequestType = iota RequestStartController RequestStopController RequestSaveConfig )
type ManagerServer ¶
type ManagerServer struct { protocol.UnimplementedManagerControlServer // contains filtered or unexported fields }
func RegisterManagerServer ¶
func RegisterManagerServer(s *grpc.Server, ctrl chan ManagerSupervisorRequest) *ManagerServer
func (*ManagerServer) Apply ¶
func (m *ManagerServer) Apply() error
func (*ManagerServer) Close ¶
func (m *ManagerServer) Close() error
func (*ManagerServer) Control ¶
func (m *ManagerServer) Control(ctx context.Context, req *protocol.ManagerControlRequest) (*protocol.ManagerControlResponse, error)
func (*ManagerServer) GetCurrentAutoStart ¶
func (m *ManagerServer) GetCurrentAutoStart(ctx context.Context, req *emptypb.Empty) (*protocol.ManagerAutoStartResponse, error)
func (*ManagerServer) GetCurrentState ¶
func (m *ManagerServer) GetCurrentState(ctx context.Context, req *emptypb.Empty) (*protocol.ManagerControlResponse, error)
func (*ManagerServer) Load ¶
func (m *ManagerServer) Load(v []byte) error
func (*ManagerServer) Name ¶
func (m *ManagerServer) Name() string
func (*ManagerServer) SetAutoStart ¶
func (m *ManagerServer) SetAutoStart(ctx context.Context, req *protocol.ManagerAutoStartRequest) (*protocol.ManagerAutoStartResponse, error)
func (*ManagerServer) Value ¶
func (m *ManagerServer) Value() []byte
type ManagerSupervisorRequest ¶
type ManagerSupervisorRequest struct { Request ManagerRequestType Response chan ManagerSupervisorResponse }
type ManagerSupervisorResponse ¶
type ManagerSupervisorResponse struct { State protocol.ManagerControlResponse_CurrentState Error error }
type ThermalServer ¶
type ThermalServer struct { protocol.UnimplementedThermalServer // contains filtered or unexported fields }
func RegisterThermalServer ¶
func RegisterThermalServer(s *grpc.Server, ctrl *thermal.Control) *ThermalServer
func (*ThermalServer) GetCurrentProfile ¶
func (t *ThermalServer) GetCurrentProfile(ctx context.Context, _ *empty.Empty) (*protocol.SetProfileResponse, error)
func (*ThermalServer) HotReload ¶
func (t *ThermalServer) HotReload(ctrl *thermal.Control)
func (*ThermalServer) Set ¶
func (t *ThermalServer) Set(ctx context.Context, req *protocol.SetProfileRequest) (*protocol.SetProfileResponse, error)
Click to show internal directories.
Click to hide internal directories.