fileshare_startup

package
v0.0.0-...-3f3d8d1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileshareHandle

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

func Startup

func Startup(storagePath string,
	serverListener net.Listener,
	grpcAuthenticator internal.SocketAuthenticator,
	fileshareImpl fileshare.Fileshare,
	eventManager *fileshare.EventManager,
	meshClient meshpb.MeshnetClient,
	grpcConn *grpc.ClientConn,
) FileshareHandle

Startup contains common parts of the startup fileshare process(daemon or orphan)

func (*FileshareHandle) GetShutdownChan

func (f *FileshareHandle) GetShutdownChan() <-chan struct{}

GetShutdownChan provides a way for the gRPC fileshare server to notify the main goroutine about a shutdown triggered from the upstream(most likely by the Disable RPC called by the main daemon, when meshent was disabled).

func (*FileshareHandle) Shutdown

func (f *FileshareHandle) Shutdown()

Shutdown performs graceful shutdown

Jump to

Keyboard shortcuts

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