fileshare_startup

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMeshNotEnabled          = errors.New("meshnet not enabled")
	ErrMeshAddressAlreadyInUse = errors.New("meshnet address is already in use, probably another fileshare instance is already running")
)

Functions

This section is empty.

Types

type FileshareHandle

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

func Startup

func Startup(storagePath string,
	legacyStoragePath string,
	eventsDBPath string,
	serverListener net.Listener,
	environment string,
	grpcAuthenticator internal.SocketAuthenticator) (FileshareHandle, error)

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