Documentation ¶
Overview ¶
This file contains sessionManager struct definition and methods. A sessionManager holds a mapping of client -> locks so that locks can be unlocked when a client disconnects
This file contains common types and interfaces for the session package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager(c *SessionConfig) *sessionManager
New creates a new sessionManager instance.
Parameter(s): c *SessionConfig Returns: *sessionManager
Types ¶
type SessionConfig ¶
type SessionConfig struct {
StateFile string `desc:"File in which to store lock state" default:"" short:"s"`
}
SessionConfig defines the configuration for a sessionManager instance
Click to show internal directories.
Click to hide internal directories.