session

package
v0.0.0-...-73e4950 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionTimeoutKey       sessionCtxKey = "timeout"
	SessionIntervalKey      sessionCtxKey = "interval"
	SessionExtendTimeoutKey sessionCtxKey = "timeout-extend"

	SessionCloseChannelKey  sessionCtxKey = "cancel-channel"
	SessionCloseFunctionKey sessionCtxKey = "cancel-function"
)

Variables

View Source
var GenerateID = func() ID {
	b := make([]byte, 16)
	rand.Read(b)

	return ID("eio-" + base64.RawURLEncoding.EncodeToString(b))
}

Functions

This section is empty.

Types

type ExtendTimeoutFunc

type ExtendTimeoutFunc func()

type ID

type ID string

func (ID) PrefixID

func (id ID) PrefixID(prefix string) ID

func (ID) String

func (id ID) String() string

type IntervalChannel

type IntervalChannel func() <-chan time.Time

type TimeoutChannel

type TimeoutChannel func() <-chan struct{}

Jump to

Keyboard shortcuts

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