bundbauthority

package
v0.0.0-...-b1c8281 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthority

func NewAuthority(db *bun.DB, expireInSec int64) auth.Authority

Types

type Token

type Token struct {
	bun.BaseModel `bun:"table:tokens"`

	AccessToken string `bun:"type:varchar(60),pk"`
	UserId      int64
	Roles       string
	ExpiredAt   time.Time
}

Jump to

Keyboard shortcuts

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