models

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 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 CalculationResult added in v1.1.0

type CalculationResult struct {
	Locale string  `json:"locale"`
	Op     string  `json:"op"`
	Result string  `json:"result"`
	Val1   float64 `json:"val1"`
	Val2   float64 `json:"val2"`
}

CalculationResult: Calculation Result

type Empty

type Empty struct {
}

Empty: (No description)

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