cache

package
v0.0.0-...-6c5ee20 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveUsersCache

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

func NewActiveUsersCache

func NewActiveUsersCache() *ActiveUsersCache

func (*ActiveUsersCache) AddUser

func (c *ActiveUsersCache) AddUser(user models.User)

func (*ActiveUsersCache) DeleteUser

func (c *ActiveUsersCache) DeleteUser(userId string)

func (*ActiveUsersCache) GetAllUsers

func (c *ActiveUsersCache) GetAllUsers() map[string]models.User

type ActiveUsersCacheInterface

type ActiveUsersCacheInterface interface {
	AddUser(user models.User)
	DeleteUser(userId string)
	GetAllUsers() map[string]models.User
}

Jump to

Keyboard shortcuts

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