useraccesstoken

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(dp *depot.Depot, id uint64) error

Types

type UserAccessToken

type UserAccessToken struct {
	CreatedAt time.Time `json:"createdAt"`
	Id        uint64    `json:"id"`
	Token     string    `json:"token"`
}

func Create

func Create(dp *depot.Depot, userId uint64) (*UserAccessToken, error)

func ListByUserId

func ListByUserId(dp *depot.Depot, userId uint64) ([]*UserAccessToken, error)

func Read

func Read(dp *depot.Depot, id uint64) (*UserAccessToken, error)

Jump to

Keyboard shortcuts

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