pb

package
v0.0.0-...-4b094ef Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Norduser_Ping_FullMethodName           = "/norduserpb.Norduser/Ping"
	Norduser_StartFileshare_FullMethodName = "/norduserpb.Norduser/StartFileshare"
	Norduser_StopFileshare_FullMethodName  = "/norduserpb.Norduser/StopFileshare"
	Norduser_Stop_FullMethodName           = "/norduserpb.Norduser/Stop"
)

Variables

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) (*Empty, error)
	// StopFileshare stops fileshare process
	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)
	// StartsFileshare starts fileshare process
	StartFileshare(context.Context, *Empty) (*Empty, error)
	// StopFileshare stops fileshare process
	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) 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