testutils

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlashMessageFind

func FlashMessageFind(cacheStore CacheStore, messageID string) (msg *basetypes.FlashMessage, err error)

func FlashMessageFindFromBody

func FlashMessageFindFromBody(cacheStore CacheStore, body string) (msg *basetypes.FlashMessage, err error)

func FlashMessageFindFromResponse

func FlashMessageFindFromResponse(cacheStore CacheStore, r *http.Response) (msg *basetypes.FlashMessage, err error)

Types

type CacheStore

type CacheStore interface {
	GetJSON(key string, valueDefault any) (any, error)
}

CacheStore is the minimal cache store interface required by the flash message helpers. Any store implementing GetJSON satisfies this contract, including github.com/dracory/cachestore.StoreInterface.

Jump to

Keyboard shortcuts

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