token

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository ...

func NewRepository

func NewRepository(db *gorm.DB) *Repository

NewRepository ...

func (*Repository) Create added in v1.2.1

func (p *Repository) Create(userid int, uid uuid.UUID, tkn string, expriydate time.Time)

Create creates model to database

func (*Repository) Delete

func (p *Repository) Delete(userid int)

Delete deletes from database

func (*Repository) DeleteByUUID

func (p *Repository) DeleteByUUID(uuid string)

DeleteByUUID deletes from database by uuid

func (*Repository) FindByUUID added in v1.2.1

func (p *Repository) FindByUUID(uuid string) (model.Token, error)

Any represents any match

func (*Repository) Migrate

func (p *Repository) Migrate() error

Migrate ...

Jump to

Keyboard shortcuts

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