graphql

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 16 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
}

QueryResolver implements GQL API methods

func NewQueryResolver

func NewQueryResolver() *QueryResolver

NewQueryResolver returns new API resolver

func (*QueryResolver) ApproveUser

func (r *QueryResolver) ApproveUser(ctx context.Context, id uint64, msg *string) (*gqlmodels.UserPayload, error)

ApproveUser is the resolver for the approveUser field.

func (*QueryResolver) CreateUser

func (r *QueryResolver) CreateUser(ctx context.Context, input *gqlmodels.UserInput) (*gqlmodels.UserPayload, error)

CreateUser is the resolver for the createUser field.

func (*QueryResolver) CurrentUser

func (r *QueryResolver) CurrentUser(ctx context.Context) (*gqlmodels.UserPayload, error)

CurrentUser returns the current user info

func (*QueryResolver) ListUsers

ListUsers list by filter

func (*QueryResolver) RejectUser

func (r *QueryResolver) RejectUser(ctx context.Context, id uint64, msg *string) (*gqlmodels.UserPayload, error)

RejectUser is the resolver for the rejectUser field.

func (*QueryResolver) ResetUserPassword

func (r *QueryResolver) ResetUserPassword(ctx context.Context, email string) (*gqlmodels.StatusResponse, error)

ResetUserPassword is the resolver for the resetUserPassword field.

func (*QueryResolver) UpdateResetedUserPassword

func (r *QueryResolver) UpdateResetedUserPassword(ctx context.Context, token, email, password string) (*gqlmodels.StatusResponse, error)

UpdateResetedUserPassword is the resolver for the updateResetedUserPassword field

func (*QueryResolver) UpdateUser

func (r *QueryResolver) UpdateUser(ctx context.Context, id uint64, input *gqlmodels.UserInput) (*gqlmodels.UserPayload, error)

UpdateUser is the resolver for the updateUser field.

func (*QueryResolver) UpdateUserPassword

func (r *QueryResolver) UpdateUserPassword(ctx context.Context, token, email, password string) (*gqlmodels.StatusResponse, error)

UpdateUserPassword is the resolver for the updateUserPassword field.

func (*QueryResolver) User

func (r *QueryResolver) User(ctx context.Context, id uint64, username string) (*gqlmodels.UserPayload, error)

User user by ID or username

Jump to

Keyboard shortcuts

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