Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterNorduserServer(s grpc.ServiceRegistrar, srv NorduserServer)
- type Empty
- type NorduserClient
- type NorduserServer
- type StopNorduserRequest
- func (*StopNorduserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopNorduserRequest) GetDisable() bool
- func (x *StopNorduserRequest) GetRestart() bool
- func (*StopNorduserRequest) ProtoMessage()
- func (x *StopNorduserRequest) ProtoReflect() protoreflect.Message
- func (x *StopNorduserRequest) Reset()
- func (x *StopNorduserRequest) String() string
- type UnimplementedNorduserServer
- func (UnimplementedNorduserServer) Ping(context.Context, *Empty) (*Empty, error)
- func (UnimplementedNorduserServer) StartFileshare(context.Context, *Empty) (*Empty, error)
- func (UnimplementedNorduserServer) Stop(context.Context, *StopNorduserRequest) (*Empty, error)
- func (UnimplementedNorduserServer) StopFileshare(context.Context, *Empty) (*Empty, error)
- type UnsafeNorduserServer
Constants ¶
const ( Norduser_Ping_FullMethodName = "/norduserpb.Norduser/Ping" Norduser_Stop_FullMethodName = "/norduserpb.Norduser/Stop" )
Variables ¶
var File_norduser_proto protoreflect.FileDescriptor
var Norduser_ServiceDesc = grpc.ServiceDesc{ ServiceName: "norduserpb.Norduser", HandlerType: (*NorduserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Norduser_Ping_Handler, }, { MethodName: "StartFileshare", Handler: _Norduser_StartFileshare_Handler, }, { MethodName: "StopFileshare", Handler: _Norduser_StopFileshare_Handler, }, { MethodName: "Stop", Handler: _Norduser_Stop_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
Norduser_ServiceDesc is the grpc.ServiceDesc for Norduser service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNorduserServer ¶
func RegisterNorduserServer(s grpc.ServiceRegistrar, srv NorduserServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type NorduserClient ¶
type NorduserClient interface { Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) StartFileshare(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) StopFileshare(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) // Stop stops norduser process Stop(ctx context.Context, in *StopNorduserRequest, opts ...grpc.CallOption) (*Empty, error) }
NorduserClient is the client API for Norduser 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 NewNorduserClient ¶
func NewNorduserClient(cc grpc.ClientConnInterface) NorduserClient
type NorduserServer ¶
type NorduserServer interface { Ping(context.Context, *Empty) (*Empty, error) StartFileshare(context.Context, *Empty) (*Empty, error) StopFileshare(context.Context, *Empty) (*Empty, error) // Stop stops norduser process Stop(context.Context, *StopNorduserRequest) (*Empty, error) // contains filtered or unexported methods }
NorduserServer is the server API for Norduser service. All implementations must embed UnimplementedNorduserServer for forward compatibility.
type StopNorduserRequest ¶
type StopNorduserRequest struct { Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,omitempty"` Restart bool `protobuf:"varint,2,opt,name=restart,proto3" json:"restart,omitempty"` // contains filtered or unexported fields }
func (*StopNorduserRequest) Descriptor
deprecated
func (*StopNorduserRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopNorduserRequest.ProtoReflect.Descriptor instead.
func (*StopNorduserRequest) GetDisable ¶
func (x *StopNorduserRequest) GetDisable() bool
func (*StopNorduserRequest) GetRestart ¶
func (x *StopNorduserRequest) GetRestart() bool
func (*StopNorduserRequest) ProtoMessage ¶
func (*StopNorduserRequest) ProtoMessage()
func (*StopNorduserRequest) ProtoReflect ¶
func (x *StopNorduserRequest) ProtoReflect() protoreflect.Message
func (*StopNorduserRequest) Reset ¶
func (x *StopNorduserRequest) Reset()
func (*StopNorduserRequest) String ¶
func (x *StopNorduserRequest) String() string
type UnimplementedNorduserServer ¶
type UnimplementedNorduserServer struct{}
UnimplementedNorduserServer 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 (UnimplementedNorduserServer) StartFileshare ¶
func (UnimplementedNorduserServer) Stop ¶
func (UnimplementedNorduserServer) Stop(context.Context, *StopNorduserRequest) (*Empty, error)
func (UnimplementedNorduserServer) StopFileshare ¶
type UnsafeNorduserServer ¶
type UnsafeNorduserServer interface {
// contains filtered or unexported methods
}
UnsafeNorduserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NorduserServer will result in compilation errors.