Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DeviceConfigurator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.DeviceConfigurator", HandlerType: (*DeviceConfiguratorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateDeviceConfig", Handler: _DeviceConfigurator_UpdateDeviceConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "simple.proto", }
DeviceConfigurator_ServiceDesc is the grpc.ServiceDesc for DeviceConfigurator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_simple_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeviceConfiguratorServer ¶
func RegisterDeviceConfiguratorServer(s grpc.ServiceRegistrar, srv DeviceConfiguratorServer)
Types ¶
type ConfigResult ¶
type ConfigResult struct { Ack string `protobuf:"bytes,1,opt,name=ack,proto3" json:"ack,omitempty"` // contains filtered or unexported fields }
func (*ConfigResult) Descriptor
deprecated
func (*ConfigResult) Descriptor() ([]byte, []int)
Deprecated: Use ConfigResult.ProtoReflect.Descriptor instead.
func (*ConfigResult) GetAck ¶
func (x *ConfigResult) GetAck() string
func (*ConfigResult) ProtoMessage ¶
func (*ConfigResult) ProtoMessage()
func (*ConfigResult) ProtoReflect ¶
func (x *ConfigResult) ProtoReflect() protoreflect.Message
func (*ConfigResult) Reset ¶
func (x *ConfigResult) Reset()
func (*ConfigResult) String ¶
func (x *ConfigResult) String() string
type DeviceConfig ¶
type DeviceConfig struct { ConfigWiFi string `protobuf:"bytes,1,opt,name=configWiFi,proto3" json:"configWiFi,omitempty"` // contains filtered or unexported fields }
func (*DeviceConfig) Descriptor
deprecated
func (*DeviceConfig) Descriptor() ([]byte, []int)
Deprecated: Use DeviceConfig.ProtoReflect.Descriptor instead.
func (*DeviceConfig) GetConfigWiFi ¶
func (x *DeviceConfig) GetConfigWiFi() string
func (*DeviceConfig) ProtoMessage ¶
func (*DeviceConfig) ProtoMessage()
func (*DeviceConfig) ProtoReflect ¶
func (x *DeviceConfig) ProtoReflect() protoreflect.Message
func (*DeviceConfig) Reset ¶
func (x *DeviceConfig) Reset()
func (*DeviceConfig) String ¶
func (x *DeviceConfig) String() string
type DeviceConfiguratorClient ¶
type DeviceConfiguratorClient interface {
UpdateDeviceConfig(ctx context.Context, in *DeviceConfig, opts ...grpc.CallOption) (*ConfigResult, error)
}
DeviceConfiguratorClient is the client API for DeviceConfigurator 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 NewDeviceConfiguratorClient ¶
func NewDeviceConfiguratorClient(cc grpc.ClientConnInterface) DeviceConfiguratorClient
type DeviceConfiguratorServer ¶
type DeviceConfiguratorServer interface { UpdateDeviceConfig(context.Context, *DeviceConfig) (*ConfigResult, error) // contains filtered or unexported methods }
DeviceConfiguratorServer is the server API for DeviceConfigurator service. All implementations must embed UnimplementedDeviceConfiguratorServer for forward compatibility
type UnimplementedDeviceConfiguratorServer ¶
type UnimplementedDeviceConfiguratorServer struct { }
UnimplementedDeviceConfiguratorServer must be embedded to have forward compatible implementations.
func (UnimplementedDeviceConfiguratorServer) UpdateDeviceConfig ¶
func (UnimplementedDeviceConfiguratorServer) UpdateDeviceConfig(context.Context, *DeviceConfig) (*ConfigResult, error)
type UnsafeDeviceConfiguratorServer ¶
type UnsafeDeviceConfiguratorServer interface {
// contains filtered or unexported methods
}
UnsafeDeviceConfiguratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeviceConfiguratorServer will result in compilation errors.