models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError interface {
	Error() string
	StatusCode() int
	ErrorBody() ApiErrorBody
}

func ConstructApiError

func ConstructApiError(code int, format string, a ...interface{}) ApiError

func ErrorWrap

func ErrorWrap(err error) ApiError

type ApiErrorBody

type ApiErrorBody struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
}

type Status

type Status struct {
	Branch    string `json:"branch"`
	Commit    string `json:"commit"`
	Platform  string `json:"platform"`
	Release   string `json:"release"`
	Timestamp string `json:"timestamp"`
}

Status: API status information

Jump to

Keyboard shortcuts

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