session

package
v0.0.0-...-50e84b0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(id string) bool

Remove removes an existing session and returns a boolean value indicating whether a session with id existed.

Types

type Session

type Session struct {
	ID        string
	SplitData []byte
}

Session is a container for each request/response session.

func Create

func Create() *Session

Create creates a new session object with a unique id.

func Get

func Get(id string) *Session

Get returns the session object for the matching id. If the id does not exist, nil is returned.

Jump to

Keyboard shortcuts

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