response

package
v0.0.0-...-a7e6680 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response map[string]interface{}

func New

func New(status bool, message string) Response

func NewWithFieldsList

func NewWithFieldsList(status bool, message string, fields []types.ErrorField) Response

func (Response) Respond

func (m Response) Respond(w http.ResponseWriter) error

func (Response) Set

func (m Response) Set(key string, value interface{})

func (Response) SetResponse

func (m Response) SetResponse(status bool, message string)

func (Response) SetString

func (m Response) SetString(key string, value string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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