roles

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	List(ctx *gin.Context)
}

Handler defines methods for Roles routes to interact with the server.

type Roles

type Roles struct {
	*deps.Deps
}

Redirects defines the handler for all roles routes.

func New

func New(d *deps.Deps) *Roles

New

Creates a new roles handler.

func (*Roles) List

func (u *Roles) List(ctx *gin.Context)

List

Returns http.StatusOK if the roles were obtained successfully. Returns http.StatusInternalServerError if there was an error getting the roles.

Jump to

Keyboard shortcuts

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