usergrp

package
v0.0.0-...-efc3f8c Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 11 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 userCore.Core
	Auth *auth.Auth
}

Handlers manages the set of user enpoints.

func (Handlers) Create

Create adds a new user to the system.

func (Handlers) Delete

Delete removes a user from the system.

func (Handlers) Query

Query returns a list of users with paging. [PS] handler for /users/:page/:rows [PS] Check handlers.go

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) Token

Token provides an API token for the authenticated user.

func (Handlers) Update

Update updates a user in the system.

Jump to

Keyboard shortcuts

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