transport

package
v0.0.0-...-cfbb22e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRoleNotFound = authapi.Error{CodeInt: http.StatusUnprocessableEntity, Message: "Invalid role"}
	ErrUserNotFound = authapi.Error{CodeInt: http.StatusNotFound, Message: "User not found"}
	ErrInternal     = authapi.Error{CodeInt: http.StatusConflict, Message: "There was a problem"}
	ErrModifySelf   = authapi.Error{CodeInt: http.StatusUnauthorized, Message: "You cannot modify yourself"}
	ErrOneOwner     = authapi.Error{CodeInt: http.StatusUnauthorized, Message: "There must be at least one owner"}
	ErrAuth0Unknown = authapi.Error{CodeInt: http.StatusBadRequest, Message: "There was a problem with the auth provider."}
)

Functions

func NewHTTP

func NewHTTP(svc user.Service, er *echo.Group, db *sqlx.DB)

Types

type HTTP

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

type PatchReq

type PatchReq struct {
	Op    string      `json:"op" validate:"required"`
	Path  string      `json:"path" validate:"required"`
	Value interface{} `json:"value" validate:"required"`
}

Jump to

Keyboard shortcuts

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