caches

package
v0.0.0-...-c85e528 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	SetSlackUser(tenant, userId string, user SlackUser)
	GetSlackUser(tenant, userId string) (SlackUser, bool)
}

func InitCaches

func InitCaches() Cache

type SlackUser

type SlackUser struct {
	Name    string `json:"name,omitempty"`
	Deleted bool   `json:"deleted,omitempty"`
	Bot     bool   `json:"bot,omitempty"`
}

Jump to

Keyboard shortcuts

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