auth

package
v0.0.0-...-42c4776 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 3 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 interface {
	Find(ctx context.Context, id int) (UserToken, error)
	Create(ctx context.Context, m UserToken) (UserToken, error)
}

type UserToken

type UserToken interface {
	ID() int
	UserID() int
	Token() string
	ExpiredAt() time.Time
	CreatedAt() time.Time
	UpdatedAt() sql.NullTime
}

func NewUserToken

func NewUserToken(
	id int,
	userId int,
	token string,
	expiredAt time.Time,
	createdAt time.Time,
	updatedAt sql.NullTime,
) UserToken

Jump to

Keyboard shortcuts

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