transport

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

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal             = authapi.Error{CodeInt: http.StatusConflict, Message: "There was a problem"}
	CannotFindInvitationErr = authapi.Error{CodeInt: http.StatusNotFound, Message: "Cannot find invitation"}
	ErrPasswordsNotMatching = authapi.Error{CodeInt: http.StatusConflict, Message: "Passwords do not match"}
	ErrPasswordNotValid     = authapi.Error{CodeInt: http.StatusConflict, Message: "Password is not in the required format"}
	ErrEmailAlreadyExists   = authapi.Error{CodeInt: http.StatusConflict, Message: "The user already exists"}
	ErrAuth0Unknown         = authapi.Error{CodeInt: http.StatusConflict, Message: "There was a problem registering with provider."}
)

Functions

func NewHTTP

func NewHTTP(svc invitation.Service, r *echo.Group, db *sqlx.DB)

Types

type HTTP

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

type VerifyTokenResp

type VerifyTokenResp struct {
	Invitation authapi.Invitation `json:"invitation"`
}

Jump to

Keyboard shortcuts

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