pb

package
v0.0.0-...-851e5e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StartFileshareStatus_name = map[int32]string{
		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",
	}
	StartFileshareStatus_value = map[string]int32{
		"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.

View Source
var File_norduser_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type NorduserClient

type NorduserClient interface {
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// StartsFileshare starts fileshare process
	StartFileshare(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StartFileshareResponse, error)
	// StopFileshare stops fileshare process
	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)
	// StartsFileshare starts fileshare process
	StartFileshare(context.Context, *Empty) (*StartFileshareResponse, error)
	// StopFileshare stops fileshare process
	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 {
	StartFileshareStatus StartFileshareStatus `` /* 161-byte string literal not displayed */
	// 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 (
	StartFileshareStatus_SUCCESS                        StartFileshareStatus = 0
	StartFileshareStatus_ALREADY_RUNNING                StartFileshareStatus = 1
	StartFileshareStatus_ALREADY_RUNNING_FOR_OTHER_USER StartFileshareStatus = 2
	StartFileshareStatus_FAILED_TO_CREATE_UNIX_SOCKET   StartFileshareStatus = 3
	StartFileshareStatus_MESHNET_NOT_ENABLED            StartFileshareStatus = 4
	StartFileshareStatus_ADDRESS_ALREADY_IN_USE         StartFileshareStatus = 5
	StartFileshareStatus_FAILED_TO_ENABLE               StartFileshareStatus = 6
)

func (StartFileshareStatus) Descriptor

func (StartFileshareStatus) Enum

func (StartFileshareStatus) EnumDescriptor deprecated

func (StartFileshareStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use StartFileshareStatus.Descriptor instead.

func (StartFileshareStatus) Number

func (StartFileshareStatus) String

func (x StartFileshareStatus) String() string

func (StartFileshareStatus) Type

type StopFileshareResponse

type StopFileshareResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// 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) Ping

func (UnimplementedNorduserServer) StartFileshare

func (UnimplementedNorduserServer) Stop

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL