outcome

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(errors error) inter.Response

func Errors

func Errors(errors []error) inter.Response

func Html

func Html(content interface{}) inter.Response

func Json

func Json(content interface{}) inter.Response

Types

type RedirectResponse

type RedirectResponse struct {
	*Response
	// contains filtered or unexported fields
}

func Redirect

func Redirect(destination string, status int) *RedirectResponse

func (*RedirectResponse) SetTargetUrl

func (r *RedirectResponse) SetTargetUrl(url string)

type Response

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

func NewResponse

func NewResponse() *Response

func (Response) Content

func (r Response) Content() string

func (Response) Header

func (r Response) Header(key string) string

func (Response) Headers

func (r Response) Headers() http.Header

func (*Response) SetContent

func (r *Response) SetContent(content string) inter.Response

func (*Response) SetStatus

func (r *Response) SetStatus(status int) inter.Response

func (Response) Status

func (r Response) Status() int

Jump to

Keyboard shortcuts

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