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