test_v2

package
v0.0.0-...-42c4776 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceId

func GetResourceId(params common.QueryMap, resourceKey string) int

func GetResourceIdStr

func GetResourceIdStr(params common.QueryMap, resourceKey string) string

func Setup

func Setup() func()

func SetupV2

func SetupV2() (*sql.DB, func(db *sql.DB))

func WithDBAndTokenContext

func WithDBAndTokenContext(ctx context.Context, db *sql.DB, userID int, expiration time.Time) context.Context

func WithDBContext

func WithDBContext(ctx context.Context, db *sql.DB) context.Context

func WithTXAndTokenContext

func WithTXAndTokenContext(ctx context.Context, db *sql.DB, tx *sql.Tx, userID int, expiration time.Time) context.Context

func WithTXContext

func WithTXContext(ctx context.Context, tx *sql.Tx) context.Context

func WithTokenContext

func WithTokenContext(ctx context.Context, userID int, expiration time.Time) context.Context

Types

type TrashScanner

type TrashScanner struct{}

func (TrashScanner) Scan

func (TrashScanner) Scan(interface{}) error

Jump to

Keyboard shortcuts

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