session

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Directories

Path Synopsis
This file contains the store struct, its methods, and some helper functions related to serialization.
This file contains the store struct, its methods, and some helper functions related to serialization.

Jump to

Keyboard shortcuts

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