server

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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 (*BatteryServer) HotReload

func (b *BatteryServer) HotReload(ctrl *battery.ChargeLimit)

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 (*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) GetCurrentBrightness

func (k *KeyboardServer) GetCurrentBrightness(ctx context.Context, _ *empty.Empty) (*protocol.KeyboardBrightnessResponse, error)

func (*KeyboardServer) HotReload

func (k *KeyboardServer) HotReload(ctrl *keyboard.Control)

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) 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) 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

Jump to

Keyboard shortcuts

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