negotiate

package
v0.0.0-...-3029327 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Types

type Negotiator

type Negotiator struct {
	ContentType string
	*render.Render
}

func GetNegotiator

func GetNegotiator(r *http.Request) *Negotiator

func (*Negotiator) Respond

func (n *Negotiator) Respond(w io.Writer, status int, v interface{})

type Payload

type Payload struct {
	XMLName xml.Name `xml:"payload" json:"-"`
	Status  string   `xml:"status" json:"status"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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