Documentation ¶
Index ¶
- type QueryResolver
- func (r *QueryResolver) ApproveUser(ctx context.Context, id uint64, msg *string) (*gqlmodels.UserPayload, error)
- func (r *QueryResolver) CreateUser(ctx context.Context, input *gqlmodels.UserInput) (*gqlmodels.UserPayload, error)
- func (r *QueryResolver) CurrentUser(ctx context.Context) (*gqlmodels.UserPayload, error)
- func (r *QueryResolver) ListUsers(ctx context.Context, filter *gqlmodels.UserListFilter, ...) (*connectors.UserConnection, error)
- func (r *QueryResolver) RejectUser(ctx context.Context, id uint64, msg *string) (*gqlmodels.UserPayload, error)
- func (r *QueryResolver) ResetUserPassword(ctx context.Context, email string) (*gqlmodels.StatusResponse, error)
- func (r *QueryResolver) UpdateResetedUserPassword(ctx context.Context, token, email, password string) (*gqlmodels.StatusResponse, error)
- func (r *QueryResolver) UpdateUser(ctx context.Context, id uint64, input *gqlmodels.UserInput) (*gqlmodels.UserPayload, error)
- func (r *QueryResolver) UpdateUserPassword(ctx context.Context, token, email, password string) (*gqlmodels.StatusResponse, error)
- func (r *QueryResolver) User(ctx context.Context, id uint64, username string) (*gqlmodels.UserPayload, 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
}
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 ¶
func (r *QueryResolver) ListUsers(ctx context.Context, filter *gqlmodels.UserListFilter, order *gqlmodels.UserListOrder, page *gqlmodels.Page) (*connectors.UserConnection, error)
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
Click to show internal directories.
Click to hide internal directories.