sessions

package
v0.0.0-...-b25a986 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomCharString

func RandomCharString(n int) string

Types

type Singleton

type Singleton struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Singleton

Returns a Singleton instance that keeps the sessions

func (*Singleton) NewSession

func (s *Singleton) NewSession(cfg *mcCmd.Config) string

func (*Singleton) ValidSession

func (s *Singleton) ValidSession(sessionID string) bool

Jump to

Keyboard shortcuts

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