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
Click to show internal directories.
Click to hide internal directories.