Documentation ¶
Index ¶
Constants ¶
const (
ModuleFirmwareService_SyncFirmware_FullMethodName = "/ai.metathings.component.ext.firmware.ModuleFirmwareService/SyncFirmware"
)
Variables ¶
var File_service_proto protoreflect.FileDescriptor
var ModuleFirmwareService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ai.metathings.component.ext.firmware.ModuleFirmwareService", HandlerType: (*ModuleFirmwareServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SyncFirmware", Handler: _ModuleFirmwareService_SyncFirmware_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
ModuleFirmwareService_ServiceDesc is the grpc.ServiceDesc for ModuleFirmwareService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterModuleFirmwareServiceServer ¶
func RegisterModuleFirmwareServiceServer(s grpc.ServiceRegistrar, srv ModuleFirmwareServiceServer)
Types ¶
type ModuleFirmwareServiceClient ¶
type ModuleFirmwareServiceClient interface {
SyncFirmware(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ModuleFirmwareServiceClient is the client API for ModuleFirmwareService 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 NewModuleFirmwareServiceClient ¶
func NewModuleFirmwareServiceClient(cc grpc.ClientConnInterface) ModuleFirmwareServiceClient
type ModuleFirmwareServiceServer ¶
type ModuleFirmwareServiceServer interface { SyncFirmware(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
ModuleFirmwareServiceServer is the server API for ModuleFirmwareService service. All implementations must embed UnimplementedModuleFirmwareServiceServer for forward compatibility.
type UnimplementedModuleFirmwareServiceServer ¶ added in v1.2.14
type UnimplementedModuleFirmwareServiceServer struct{}
UnimplementedModuleFirmwareServiceServer 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 (UnimplementedModuleFirmwareServiceServer) SyncFirmware ¶ added in v1.2.14
type UnsafeModuleFirmwareServiceServer ¶
type UnsafeModuleFirmwareServiceServer interface {
// contains filtered or unexported methods
}
UnsafeModuleFirmwareServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModuleFirmwareServiceServer will result in compilation errors.