users

package
v0.0.0-...-6625f99 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserDTO

type CreateUserDTO struct {
	Username string
	Password string
	Name     string
	Roles    []users.Role
}

func (*CreateUserDTO) ToDomain

func (d *CreateUserDTO) ToDomain() *users.User

type UsersHandler

type UsersHandler struct {
}

func NewUsersHandler

func NewUsersHandler() *UsersHandler

func (*UsersHandler) CreateUser

func (h *UsersHandler) CreateUser(w http.ResponseWriter, r *http.Request)

func (*UsersHandler) GetUser

func (h *UsersHandler) GetUser(w http.ResponseWriter, r *http.Request)

func (*UsersHandler) ListUsers

func (h *UsersHandler) ListUsers(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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