236 lines
8.6 KiB
Go
236 lines
8.6 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.2
|
|
// - protoc v4.25.8
|
|
// source: percutaneous/percutaneous.proto
|
|
|
|
package percutaneous
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
Percutaneous_WifiCheck_FullMethodName = "/percutaneous.Percutaneous/WifiCheck"
|
|
Percutaneous_WifiSet_FullMethodName = "/percutaneous.Percutaneous/WifiSet"
|
|
Percutaneous_Use_FullMethodName = "/percutaneous.Percutaneous/Use"
|
|
Percutaneous_UsedLog_FullMethodName = "/percutaneous.Percutaneous/UsedLog"
|
|
)
|
|
|
|
// PercutaneousClient is the client API for Percutaneous 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.
|
|
type PercutaneousClient interface {
|
|
WifiCheck(ctx context.Context, in *WifiCheckRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WifiSet(ctx context.Context, in *WifiSetRequest, opts ...grpc.CallOption) (*Response, error)
|
|
Use(ctx context.Context, in *UseRequest, opts ...grpc.CallOption) (*Response, error)
|
|
UsedLog(ctx context.Context, in *UsedLogRequest, opts ...grpc.CallOption) (*Response, error)
|
|
}
|
|
|
|
type percutaneousClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewPercutaneousClient(cc grpc.ClientConnInterface) PercutaneousClient {
|
|
return &percutaneousClient{cc}
|
|
}
|
|
|
|
func (c *percutaneousClient) WifiCheck(ctx context.Context, in *WifiCheckRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Percutaneous_WifiCheck_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *percutaneousClient) WifiSet(ctx context.Context, in *WifiSetRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Percutaneous_WifiSet_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *percutaneousClient) Use(ctx context.Context, in *UseRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Percutaneous_Use_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *percutaneousClient) UsedLog(ctx context.Context, in *UsedLogRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Percutaneous_UsedLog_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// PercutaneousServer is the server API for Percutaneous service.
|
|
// All implementations must embed UnimplementedPercutaneousServer
|
|
// for forward compatibility.
|
|
type PercutaneousServer interface {
|
|
WifiCheck(context.Context, *WifiCheckRequest) (*Response, error)
|
|
WifiSet(context.Context, *WifiSetRequest) (*Response, error)
|
|
Use(context.Context, *UseRequest) (*Response, error)
|
|
UsedLog(context.Context, *UsedLogRequest) (*Response, error)
|
|
mustEmbedUnimplementedPercutaneousServer()
|
|
}
|
|
|
|
// UnimplementedPercutaneousServer 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.
|
|
type UnimplementedPercutaneousServer struct{}
|
|
|
|
func (UnimplementedPercutaneousServer) WifiCheck(context.Context, *WifiCheckRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WifiCheck not implemented")
|
|
}
|
|
func (UnimplementedPercutaneousServer) WifiSet(context.Context, *WifiSetRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WifiSet not implemented")
|
|
}
|
|
func (UnimplementedPercutaneousServer) Use(context.Context, *UseRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Use not implemented")
|
|
}
|
|
func (UnimplementedPercutaneousServer) UsedLog(context.Context, *UsedLogRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UsedLog not implemented")
|
|
}
|
|
func (UnimplementedPercutaneousServer) mustEmbedUnimplementedPercutaneousServer() {}
|
|
func (UnimplementedPercutaneousServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafePercutaneousServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to PercutaneousServer will
|
|
// result in compilation errors.
|
|
type UnsafePercutaneousServer interface {
|
|
mustEmbedUnimplementedPercutaneousServer()
|
|
}
|
|
|
|
func RegisterPercutaneousServer(s grpc.ServiceRegistrar, srv PercutaneousServer) {
|
|
// If the following call panics, it indicates UnimplementedPercutaneousServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&Percutaneous_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Percutaneous_WifiCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WifiCheckRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PercutaneousServer).WifiCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Percutaneous_WifiCheck_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PercutaneousServer).WifiCheck(ctx, req.(*WifiCheckRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Percutaneous_WifiSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WifiSetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PercutaneousServer).WifiSet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Percutaneous_WifiSet_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PercutaneousServer).WifiSet(ctx, req.(*WifiSetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Percutaneous_Use_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UseRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PercutaneousServer).Use(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Percutaneous_Use_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PercutaneousServer).Use(ctx, req.(*UseRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Percutaneous_UsedLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UsedLogRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PercutaneousServer).UsedLog(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Percutaneous_UsedLog_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PercutaneousServer).UsedLog(ctx, req.(*UsedLogRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Percutaneous_ServiceDesc is the grpc.ServiceDesc for Percutaneous service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Percutaneous_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "percutaneous.Percutaneous",
|
|
HandlerType: (*PercutaneousServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "WifiCheck",
|
|
Handler: _Percutaneous_WifiCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "WifiSet",
|
|
Handler: _Percutaneous_WifiSet_Handler,
|
|
},
|
|
{
|
|
MethodName: "Use",
|
|
Handler: _Percutaneous_Use_Handler,
|
|
},
|
|
{
|
|
MethodName: "UsedLog",
|
|
Handler: _Percutaneous_UsedLog_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "percutaneous/percutaneous.proto",
|
|
}
|