Documentation ¶
Overview ¶
Package stateservice implements a centralized IoT device state storage service. See the controller.StateService proto.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { cpb.UnimplementedStateServiceServer // contains filtered or unexported fields }
Service implements controller.StateService.
func (*Service) GetDeviceState ¶
func (s *Service) GetDeviceState(ctx context.Context, req *cpb.GetDeviceStateRequest) (*cpb.DeviceState, error)
func (*Service) SetDeviceState ¶
func (s *Service) SetDeviceState(ctx context.Context, req *cpb.SetDeviceStateRequest) (*cpb.SetDeviceStateResponse, error)
Click to show internal directories.
Click to hide internal directories.