types

package
v1.112.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFromResponse

func ErrorFromResponse(body []byte) string

Types

type ErrorResponse

type ErrorResponse struct {
	Error   *string `json:"error,omitempty"`
	Success bool    `json:"success"` // NOTE: the frontend relies on this for some routes
	Err     error   `json:"-"`
}

func NewErrorResponse

func NewErrorResponse(err error) ErrorResponse

Jump to

Keyboard shortcuts

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