Documentation ¶
Index ¶
- func GetResourceId(params common.QueryMap, resourceKey string) int
- func GetResourceIdStr(params common.QueryMap, resourceKey string) string
- func Setup() func()
- func SetupV2() (*sql.DB, func(db *sql.DB))
- func WithDBAndTokenContext(ctx context.Context, db *sql.DB, userID int, expiration time.Time) context.Context
- func WithDBContext(ctx context.Context, db *sql.DB) context.Context
- func WithTXAndTokenContext(ctx context.Context, db *sql.DB, tx *sql.Tx, userID int, expiration time.Time) context.Context
- func WithTXContext(ctx context.Context, tx *sql.Tx) context.Context
- func WithTokenContext(ctx context.Context, userID int, expiration time.Time) context.Context
- type TrashScanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDBAndTokenContext ¶
func WithTXAndTokenContext ¶
Types ¶
type TrashScanner ¶
type TrashScanner struct{}
func (TrashScanner) Scan ¶
func (TrashScanner) Scan(interface{}) error
Click to show internal directories.
Click to hide internal directories.