http

package
v0.0.0-...-ec590a0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Json

type Json struct {
	Data interface{}
}

func (Json) Respond

func (r Json) Respond(responseWriter http.ResponseWriter) error

type Request

type Request struct {
	*http.Request
	Params httprouter.Params
}

type Response

type Response interface {
	Respond(http.ResponseWriter) error
}

type Text

type Text struct {
	Message string
}

func (Text) Respond

func (r Text) Respond(responseWriter http.ResponseWriter) error

type View

type View struct {
	Name  string
	Model interface{}
}

func (View) Respond

func (v View) Respond(responseWriter http.ResponseWriter) error

Jump to

Keyboard shortcuts

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