norduser

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NordvpnGroupMonitor

type NordvpnGroupMonitor struct {
	// contains filtered or unexported fields
}

NordvpnGroupMonitor monitors the nordvpn system group and starts/stops norduserd for users added/removed from the group.

func NewNordvpnGroupMonitor

func NewNordvpnGroupMonitor(service service.NorduserService) NordvpnGroupMonitor

func (*NordvpnGroupMonitor) Start

func (n *NordvpnGroupMonitor) Start() error

Start blocks the thread and starts monitoring for changes in the nordvpn group.

type Server

type Server struct {
	pb.UnimplementedNorduserServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(fileshareProcessManager childprocess.ChildProcessManager, stopChan chan<- StopRequest) *Server

func (*Server) Ping

func (s *Server) Ping(context.Context, *pb.Empty) (*pb.Empty, error)

func (*Server) StartFileshare

func (s *Server) StartFileshare(context.Context, *pb.Empty) (*pb.StartFileshareResponse, error)

func (*Server) Stop

func (s *Server) Stop(_ context.Context, req *pb.StopNorduserRequest) (*pb.Empty, error)

func (*Server) StopFileshare

func (s *Server) StopFileshare(context.Context, *pb.Empty) (*pb.StopFileshareResponse, error)

type StartNorduserdMiddleware

type StartNorduserdMiddleware struct {
	// contains filtered or unexported fields
}

StartNorduserdMiddleware provides a way to start/stop norduserd when handling nordvpnd gRPCs.

func NewStartNorduserMiddleware

func NewStartNorduserMiddleware(norduserd service.NorduserService) StartNorduserdMiddleware

func (*StartNorduserdMiddleware) StreamMiddleware

func (n *StartNorduserdMiddleware) StreamMiddleware(srv interface{},
	ss grpc.ServerStream,
	info *grpc.StreamServerInfo) error

func (*StartNorduserdMiddleware) UnaryMiddleware

func (n *StartNorduserdMiddleware) UnaryMiddleware(
	ctx context.Context,
	req interface{},
	info *grpc.UnaryServerInfo) (interface{}, error)

type StopRequest

type StopRequest struct {
	DisableAutostart bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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