http

package
v0.0.0-...-a12d374 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bad

func Bad(message string) middleware.Responder

func InternalError

func InternalError() middleware.Responder

func NotFound

func NotFound() middleware.Responder

Types

type Recovery

type Recovery struct{}

func NewRecovery

func NewRecovery() *Recovery

func (*Recovery) ServeHTTP

func (rec *Recovery) ServeHTTP(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc)

type Server

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

func New

func New(logger *zerolog.Logger, settings Settings) (*Server, error)

func (*Server) API

func (server *Server) API() *operations.FerretServerAPI

func (*Server) Run

func (server *Server) Run() error

type Settings

type Settings struct {
	Port uint64
}

func NewDefaultSettings

func NewDefaultSettings() Settings

Directories

Path Synopsis
api
restapi
Package restapi Ferret Server API API of Ferret Server Schemes: http Host: localhost BasePath: / Version: 1.0.0-rc.2 License: MIT Contact: MontFerret Project Group<mont.ferret@gmail.com> https://github.com/MontFerret Consumes: - application/json Produces: - application/json swagger:meta
Package restapi Ferret Server API API of Ferret Server Schemes: http Host: localhost BasePath: / Version: 1.0.0-rc.2 License: MIT Contact: MontFerret Project Group<mont.ferret@gmail.com> https://github.com/MontFerret Consumes: - application/json Produces: - application/json swagger:meta

Jump to

Keyboard shortcuts

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