caching

package
v0.0.0-...-bf66d8f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This just needs to be kept somewhere to avoid import cycles

Errors

Functions

func CreateSpace

func CreateSpace(accId string, cluster uint) (string, util.AppToken, bool)

Create a space

func DeleteAdapters

func DeleteAdapters(account string) error

Delete all adapters for an account

func DeleteToken

func DeleteToken(id, token string)

func GetToken

Get a conversation token

func InsertAdapters

func InsertAdapters(account string, adapters []string)

Insert all the adapters

func IsInSpace

func IsInSpace(accId string) bool

Check if account is in a space

func JoinSpace

func JoinSpace(accId string, space string, cluster uint) (util.AppToken, bool)

Join a space

func LeaveSpace

func LeaveSpace(accId string) bool

Leave a space

func LoadMembersArray

func LoadMembersArray(ids []string) (map[string][]StoredMember, error)

func MembersToPipes

func MembersToPipes(members []StoredMember) ([]string, []string)

func SetupCaches

func SetupCaches()

func ValidateToken

func ValidateToken(id string, token string) (conversations.ConversationToken, error)

This does database requests and stuff

Types

type SpaceInfo

type SpaceInfo struct {
	Account      string
	ConnectionID string
	Domain       string
}

type StoredMember

type StoredMember struct {
	TokenID string // Conversation token ID
	Token   string // Conversation token
	Node    int64
}

func LoadMembers

func LoadMembers(id string) ([]StoredMember, error)

Does database requests and stuff

Jump to

Keyboard shortcuts

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