sessions

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sessions

type Sessions struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func NewSessions

func NewSessions() *Sessions

func (*Sessions) CreateSession

func (sessions *Sessions) CreateSession(username string, available time.Duration) (string, error)

func (*Sessions) GetSession

func (sessions *Sessions) GetSession(key string) string

func (*Sessions) Remove

func (sessions *Sessions) Remove(key string)

Jump to

Keyboard shortcuts

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