model

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 5 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 struct {
	Status     string `json:"status"`
	ErrorText  string `json:"errorText,omitempty"`
	Address    string `json:"address,omitempty"`
	StatusCode int    `json:"statusCode,omitempty"`
	Version    string `json:"version,omitempty"`
}

func EncodeJson

func EncodeJson(r Response, w http.ResponseWriter) Response

func (*Response) Fill

func (r *Response) Fill(outStr string, err error)

func (Response) String

func (r Response) String() string

func (Response) WriteBadRequestHttp

func (r Response) WriteBadRequestHttp(w http.ResponseWriter) Response

func (Response) WriteHttp

func (r Response) WriteHttp(w http.ResponseWriter) Response

type Responses

type Responses struct {
	Responses []Response `json:"responses"`
}

func (Responses) String

func (r Responses) String() string

Jump to

Keyboard shortcuts

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