Documentation
¶
Index ¶
- func GetUserPreferences(e *core.RequestEvent) (application.UserPreferences, error)
- func Map[T, U any](seq iter.Seq[T], f func(T) U) iter.Seq[U]
- func MustGetNATSAuth(e *core.RequestEvent) *natsauth.NATSAuthModule
- func MustGetUserPreferences(record *core.Record) application.UserPreferences
- func SetUserPreferences(app core.App, record *core.Record, prefs application.UserPreferences) error
- func ToPrecision(n, p float64) float64
- func ToStringSigBytesPerKB(n uint64, sig, bytesPerKB float64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserPreferences ¶
func GetUserPreferences(e *core.RequestEvent) (application.UserPreferences, error)
func MustGetNATSAuth ¶
func MustGetNATSAuth(e *core.RequestEvent) *natsauth.NATSAuthModule
func MustGetUserPreferences ¶
func MustGetUserPreferences(record *core.Record) application.UserPreferences
func SetUserPreferences ¶
func SetUserPreferences(app core.App, record *core.Record, prefs application.UserPreferences) error
func ToPrecision ¶
A Go implementation of JavaScript's Math.toPrecision
func ToStringSigBytesPerKB ¶
Converts a byte count into a byte string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.