usergrp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package usergrp maintains the group of handlers for user access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	User          user.Core
	Workspace     workspace.Core
	WorkspaceUser workspace_user.Core
	Auth          *auth.Auth
	Project       project.Core
}

Handlers manages the set of user endpoints.

func (Handlers) ChangePassword

func (h Handlers) ChangePassword(ctx context.Context, w http.ResponseWriter, r *http.Request) error

ChangePassword updates a user in the system.

func (Handlers) NewToken

func (h Handlers) NewToken(ctx context.Context, w http.ResponseWriter, r *http.Request) error

NewToken provides an API token for the authenticated user.

func (Handlers) QueryByID

func (h Handlers) QueryByID(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryByID returns a user by its ID.

func (Handlers) QueryUserProjects

func (h Handlers) QueryUserProjects(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryUserProjects returns a list of projects for the user.

func (Handlers) SignUp

SignUp adds a new user to the system.

func (Handlers) Update

Update updates a user in the system.

func (Handlers) UpdateImage

func (h Handlers) UpdateImage(ctx context.Context, w http.ResponseWriter, r *http.Request) error

UpdateImage updates a user in the system.

Jump to

Keyboard shortcuts

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