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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

Functions

This section is empty.

Types

type ID

type ID string

func (ID) GoString

func (id ID) GoString() string

func (ID) Room

func (id ID) Room(prefix string) string

func (ID) String

func (id ID) String() string

Jump to

Keyboard shortcuts

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