Documentation ¶
Index ¶
- Variables
- func RegisterNorduserServer(s grpc.ServiceRegistrar, srv NorduserServer)
- type Empty
- type NorduserClient
- type NorduserServer
- type StartFileshareResponse
- func (*StartFileshareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartFileshareResponse) GetStartFileshareStatus() StartFileshareStatus
- func (*StartFileshareResponse) ProtoMessage()
- func (x *StartFileshareResponse) ProtoReflect() protoreflect.Message
- func (x *StartFileshareResponse) Reset()
- func (x *StartFileshareResponse) String() string
- type StartFileshareStatus
- func (StartFileshareStatus) Descriptor() protoreflect.EnumDescriptor
- func (x StartFileshareStatus) Enum() *StartFileshareStatus
- func (StartFileshareStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x StartFileshareStatus) Number() protoreflect.EnumNumber
- func (x StartFileshareStatus) String() string
- func (StartFileshareStatus) Type() protoreflect.EnumType
- type StopFileshareResponse
- func (*StopFileshareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StopFileshareResponse) GetSuccess() bool
- func (*StopFileshareResponse) ProtoMessage()
- func (x *StopFileshareResponse) ProtoReflect() protoreflect.Message
- func (x *StopFileshareResponse) Reset()
- func (x *StopFileshareResponse) String() string
- type StopNorduserRequest
- func (*StopNorduserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopNorduserRequest) GetDisable() 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) (*StartFileshareResponse, error)
- func (UnimplementedNorduserServer) Stop(context.Context, *StopNorduserRequest) (*Empty, error)
- func (UnimplementedNorduserServer) StopFileshare(context.Context, *Empty) (*StopFileshareResponse, error)
- type UnsafeNorduserServer
Constants ¶
This section is empty.
Variables ¶
var (0: "SUCCESS", 1: "ALREADY_RUNNING", 2: "ALREADY_RUNNING_FOR_OTHER_USER", 3: "FAILED_TO_CREATE_UNIX_SOCKET", 4: "MESHNET_NOT_ENABLED", 5: "ADDRESS_ALREADY_IN_USE", 6: "FAILED_TO_ENABLE", } "SUCCESS": 0, "ALREADY_RUNNING": 1, "ALREADY_RUNNING_FOR_OTHER_USER": 2, "FAILED_TO_CREATE_UNIX_SOCKET": 3, "MESHNET_NOT_ENABLED": 4, "ADDRESS_ALREADY_IN_USE": 5, "FAILED_TO_ENABLE": 6, } )
Enum value maps for StartFileshareStatus.
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) (*StartFileshareResponse, error) StopFileshare(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StopFileshareResponse, 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) (*StartFileshareResponse, error) StopFileshare(context.Context, *Empty) (*StopFileshareResponse, 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 StartFileshareResponse ¶
type StartFileshareResponse struct { // contains filtered or unexported fields }
func (*StartFileshareResponse) Descriptor
deprecated
func (*StartFileshareResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartFileshareResponse.ProtoReflect.Descriptor instead.
func (*StartFileshareResponse) GetStartFileshareStatus ¶
func (x *StartFileshareResponse) GetStartFileshareStatus() StartFileshareStatus
func (*StartFileshareResponse) ProtoMessage ¶
func (*StartFileshareResponse) ProtoMessage()
func (*StartFileshareResponse) ProtoReflect ¶
func (x *StartFileshareResponse) ProtoReflect() protoreflect.Message
func (*StartFileshareResponse) Reset ¶
func (x *StartFileshareResponse) Reset()
func (*StartFileshareResponse) String ¶
func (x *StartFileshareResponse) String() string
type StartFileshareStatus ¶
type StartFileshareStatus int32
const ()
func (StartFileshareStatus) Descriptor ¶
func (StartFileshareStatus) Descriptor() protoreflect.EnumDescriptor
func (StartFileshareStatus) Enum ¶
func (x StartFileshareStatus) Enum() *StartFileshareStatus
func (StartFileshareStatus) EnumDescriptor
deprecated
func (StartFileshareStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use StartFileshareStatus.Descriptor instead.
func (StartFileshareStatus) Number ¶
func (x StartFileshareStatus) Number() protoreflect.EnumNumber
func (StartFileshareStatus) String ¶
func (x StartFileshareStatus) String() string
func (StartFileshareStatus) Type ¶
func (StartFileshareStatus) Type() protoreflect.EnumType
type StopFileshareResponse ¶
type StopFileshareResponse struct { // contains filtered or unexported fields }
func (*StopFileshareResponse) Descriptor
deprecated
func (*StopFileshareResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopFileshareResponse.ProtoReflect.Descriptor instead.
func (*StopFileshareResponse) GetSuccess ¶
func (x *StopFileshareResponse) GetSuccess() bool
func (*StopFileshareResponse) ProtoMessage ¶
func (*StopFileshareResponse) ProtoMessage()
func (*StopFileshareResponse) ProtoReflect ¶
func (x *StopFileshareResponse) ProtoReflect() protoreflect.Message
func (*StopFileshareResponse) Reset ¶
func (x *StopFileshareResponse) Reset()
func (*StopFileshareResponse) String ¶
func (x *StopFileshareResponse) String() string
type StopNorduserRequest ¶
type StopNorduserRequest struct { Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,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) 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.
func (UnimplementedNorduserServer) StartFileshare ¶
func (UnimplementedNorduserServer) StartFileshare(context.Context, *Empty) (*StartFileshareResponse, error)
func (UnimplementedNorduserServer) Stop ¶
func (UnimplementedNorduserServer) Stop(context.Context, *StopNorduserRequest) (*Empty, error)
func (UnimplementedNorduserServer) StopFileshare ¶
func (UnimplementedNorduserServer) StopFileshare(context.Context, *Empty) (*StopFileshareResponse, error)
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.