responses

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Status  int    `json:"status"`
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Error describes an error for humans and machines

func NewError

func NewError(code int, message string) *Error

NewError - a brand new error

func (Error) Error

func (e Error) Error() string

type Update

type Update struct {
	// did it work or not
	Success bool `json:"success"`
	// this is for humand
	ErrorMessage string `json:"errorMessage"`
	Stats        struct {
		NumberOfNodes int `json:"numberOfNodes"`
		NumberOfURIs  int `json:"numberOfURIs"`
		// seconds
		RepoRuntime float64 `json:"repoRuntime"`
		// seconds
		OwnRuntime float64 `json:"ownRuntime"`
	} `json:"stats"`
}

Update - information about an update

Jump to

Keyboard shortcuts

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