usergrp

package
v0.0.0-...-57b3f38 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 6 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 Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, db *sqlx.DB) *Handler

New constructs a handlers for a route access.

func (*Handler) Create

func (h *Handler) Create(w http.ResponseWriter, r *http.Request)

Create an API key for a user.

func (*Handler) DeleteAll

func (h *Handler) DeleteAll(w http.ResponseWriter, r *http.Request)

DeleteAll deletes all users.

Jump to

Keyboard shortcuts

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