db_module

package
v0.0.0-...-8d4abb2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToken

func AddToken(db *bun.DB, token string, ctx context.Context) error

func CreateSchema

func CreateSchema(db *bun.DB, ctx context.Context) error

func DropToken

func DropToken(db *bun.DB, token string, ctx context.Context) error

func MakeConection

func MakeConection(dbConfig config.DataBaseConfig) *bun.DB

func TokenExists

func TokenExists(db *bun.DB, token string, ctx context.Context) bool

Types

type RefreshToken

type RefreshToken struct {
	bun.BaseModel `bun:"table:refresh_tokens"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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