common

package
v0.0.0-...-87fe153 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildInfo   *debug.BuildInfo
	Version     string
	VersionLink string
	UserAgent   = userAgentPrefix
	Hostname    = "no-hostname"
)

Functions

func GetRiver

func GetRiver(dbPool *pgxpool.Pool) (*river.Client[pgx.Tx], error)

func GetWebSession

func GetWebSession(ctx context.Context) *sessions.Session

func RegisterWorker

func RegisterWorker[T river.JobArgs](worker river.Worker[T])

func WithRequestID

func WithRequestID(ctx context.Context) context.Context

Types

type ContextKey

type ContextKey int
const (
	ContextKeyRequestID ContextKey = iota
	ContextKeyWebSession
)

Jump to

Keyboard shortcuts

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