cache

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

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheAndOutputAccountStats

func CacheAndOutputAccountStats(
	w http.ResponseWriter,
	r *http.Request,
	datastoreClient *google_datastore.Client,
	ctx context.Context,
	accountName string,
	render func(wr io.Writer) error,
)

func CacheAndOutputGuildStats

func CacheAndOutputGuildStats(
	w http.ResponseWriter,
	r *http.Request,
	datastoreClient *google_datastore.Client,
	ctx context.Context,
	guildId int32,
	guildName string,
	render func(wr io.Writer) error,
)

func Decompress

func Decompress(input []byte) ([]byte, error)

func InvalidateAccountStatsCache

func InvalidateAccountStatsCache(ctx context.Context, datastoreClient *google_datastore.Client, accountName string) error

func InvalidateGuildStatsCache

func InvalidateGuildStatsCache(ctx context.Context, datastoreClient *google_datastore.Client, guildId int32) error

func WriteCompressedResponseOrDecompress

func WriteCompressedResponseOrDecompress(w http.ResponseWriter, r *http.Request, compressedOutput []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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