Documentation ¶
Index ¶
- type QueryResolver
- func (r *QueryResolver) Generate(ctx context.Context, userID *uint64, description string, expiresAt *time.Time) (*models.DirectAccessTokenPayload, error)
- func (r *QueryResolver) Get(ctx context.Context, id uint64) (*models.DirectAccessTokenPayload, error)
- func (r *QueryResolver) List(ctx context.Context, filter *models.DirectAccessTokenListFilter, ...) (...)
- func (r *QueryResolver) Revoke(ctx context.Context, filter models.DirectAccessTokenListFilter) (*models.StatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryResolver ¶
type QueryResolver struct {
// contains filtered or unexported fields
}
func NewQueryResolver ¶
func NewQueryResolver() *QueryResolver
NewQueryResolver creates a new resolver.
func (*QueryResolver) Generate ¶
func (r *QueryResolver) Generate(ctx context.Context, userID *uint64, description string, expiresAt *time.Time) (*models.DirectAccessTokenPayload, error)
Generate is the resolver for the generateDirectAccessToken field.
func (*QueryResolver) Get ¶
func (r *QueryResolver) Get(ctx context.Context, id uint64) (*models.DirectAccessTokenPayload, error)
Get is the resolver for the getDirectAccessToken field.
func (*QueryResolver) List ¶
func (r *QueryResolver) List(ctx context.Context, filter *models.DirectAccessTokenListFilter, order *models.DirectAccessTokenListOrder, page *models.Page) (*connectors.CollectionConnection[models.DirectAccessToken, models.DirectAccessTokenEdge], error)
List is the resolver for the listDirectAccessTokens field.
func (*QueryResolver) Revoke ¶
func (r *QueryResolver) Revoke(ctx context.Context, filter models.DirectAccessTokenListFilter) (*models.StatusResponse, error)
Revoke is the resolver for the revokeDirectAccessToken field.
Click to show internal directories.
Click to hide internal directories.