handler

package
v0.0.0-...-f0a364e Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEngine

func BuildEngine(appContext *cli.Context, logger *log.Logger, db *gorm.DB) *iris.Application

Types

type Error

type Error interface {
	error
	Status() int
}

func BadRequest

func BadRequest(err error) Error

func NotFound

func NotFound(err error) Error

type StatusError

type StatusError struct {
	Err  error
	Code int
}

func (StatusError) Error

func (se StatusError) Error() string

func (StatusError) Status

func (se StatusError) Status() int

Jump to

Keyboard shortcuts

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