Documentation ¶
Index ¶
- type Usecase
- func (u *Usecase) Count(ctx context.Context, filter *directaccesstoken.Filter) (int64, error)
- func (u *Usecase) FetchList(ctx context.Context, filter *directaccesstoken.Filter, ...) ([]*model.DirectAccessToken, error)
- func (u *Usecase) Generate(ctx context.Context, userID, accountID uint64, description string, ...) (*model.DirectAccessToken, error)
- func (u *Usecase) Get(ctx context.Context, id uint64) (*model.DirectAccessToken, error)
- func (u *Usecase) Revoke(ctx context.Context, filter *directaccesstoken.Filter) error
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 (*Usecase) FetchList ¶
func (u *Usecase) FetchList(ctx context.Context, filter *directaccesstoken.Filter, order *directaccesstoken.Order, page *repository.Pagination) ([]*model.DirectAccessToken, error)
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
Click to show internal directories.
Click to hide internal directories.