cache

package
v0.0.0-...-1382dd4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const UserEntitiesKey = "USER_ENTITIES_"

Variables

This section is empty.

Functions

func CaptchaCheck

func CaptchaCheck(key string, captcha string) (bool, error)

func CaptchaSet

func CaptchaSet(key string) (string, error)

func ExpireUserEntities

func ExpireUserEntities(ctx context.Context, userId primitive.ObjectID) error

func GetUserEntities

func GetUserEntities(ctx context.Context, userId primitive.ObjectID) ([]models.Application, error)

func StreamAckCheck

func StreamAckCheck(ctx context.Context, key string) bool

func StreamAckEvent

func StreamAckEvent(ctx context.Context, event StreamAckEventType, key string)

func StreamAckStart

func StreamAckStart(ctx context.Context, key string)

func StreamAckStop

func StreamAckStop(ctx context.Context, key string)

Types

type StreamAckEventType

type StreamAckEventType uint
const (
	StreamAckSent StreamAckEventType = iota
	StreamAckReceived
)

Jump to

Keyboard shortcuts

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