mist_api_error

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessApiError

func ProcessApiError(ctx context.Context, status_code int, body io.ReadCloser, err error) string

func ProcessApiErrorInventory

func ProcessApiErrorInventory(ctx context.Context, status_code int, body io.ReadCloser) interface{}

func ProcessInventoryApiError added in v0.2.0

func ProcessInventoryApiError(ctx context.Context, action string, status_code int, body io.ReadCloser, err error) []string

Types

type ErrorDetail

type ErrorDetail struct {
	Detail string `json:"detail,omitempty"`
}

type ErrorInventory added in v0.2.0

type ErrorInventory struct {
	Op      string   `json:"op,omitempty"`
	Success []string `json:"success"`
	Error   []string `json:"error"`
	Reason  []string `json:"reason"`
}

Jump to

Keyboard shortcuts

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