relay

package
v0.0.0-...-0a8b275 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Map = M{
		Map: &sync.Map{},
	}
	MaxAge = time.Hour * 24
)

Functions

This section is empty.

Types

type M

type M struct {
	*sync.Map
}

func (*M) List

func (m *M) List(username string) []Slot

func (*M) Load

func (m *M) Load(username, clusterID, nodename string) (Slot, bool)

func (*M) Stop

func (m *M) Stop()

func (*M) Store

func (m *M) Store(username, clusterID, nodename string, value any)

type Slot

type Slot struct {
	Value any

	Username string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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