usecase

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usecase

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

func New

New direct access token usecase

func (*Usecase) Count

func (u *Usecase) Count(ctx context.Context, filter *directaccesstoken.Filter) (int64, error)

Count of direct access tokens

func (*Usecase) FetchList

FetchList of direct access tokens

func (*Usecase) Generate

func (u *Usecase) Generate(ctx context.Context, userID, accountID uint64, description string, expiresAt time.Time) (*model.DirectAccessToken, error)

Generate access token

func (*Usecase) Get

Get direct access token by token

func (*Usecase) Revoke

func (u *Usecase) Revoke(ctx context.Context, filter *directaccesstoken.Filter) error

Revoke access tokens

Jump to

Keyboard shortcuts

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