counters

package
v0.0.0-...-d1346dc Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitTransaction

func CommitTransaction(tx pgx.Tx, tempTables ...string) (err error)

func FetchTransaction

func FetchTransaction() (tx pgx.Tx, err error)

func GenerateRandomString

func GenerateRandomString(s int) (string, error)

func GetAreaCount

func GetAreaCount(ctx context.Context) (n int64, err error)

func GetArray

func GetArray(query url.Values, key string) []string

func GetArtistCount

func GetArtistCount(ctx context.Context) (n int64, err error)

func GetIntArray

func GetIntArray(query url.Values, key string) []int

func GetLiveCount

func GetLiveCount(ctx context.Context) (n int64, err error)

func GetLiveHouseCount

func GetLiveHouseCount(ctx context.Context) (n int64, err error)

func RollbackTransaction

func RollbackTransaction(tx pgx.Tx)

Types

type Paginator

type Paginator struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

func InitializePaginator

func InitializePaginator(query url.Values) Paginator

Jump to

Keyboard shortcuts

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