graphql

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

Get is the resolver for the getDirectAccessToken field.

func (*QueryResolver) List

List is the resolver for the listDirectAccessTokens field.

func (*QueryResolver) Revoke

Revoke is the resolver for the revokeDirectAccessToken field.

Jump to

Keyboard shortcuts

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