result

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package result is an HTTP result and the invoke errors returned to a caller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthError added in v0.1.5

type AuthError struct {
	Name   string
	Detail string
}

AuthError is a required credential that is not set. It does not carry the secret.

func (AuthError) Error added in v0.1.5

func (e AuthError) Error() string

type BodyError added in v0.1.1

type BodyError struct {
	Operation string
	Path      string
	Reason    string
}

BodyError is a request body that does not match the operation's schema. It does not carry the value.

func (BodyError) Error added in v0.1.1

func (e BodyError) Error() string

type HTTPResult

type HTTPResult struct {
	Status    int
	Body      string
	Code      string
	Retryable bool
	Truncated bool
	Page      *Page
	HTTP      bool // a response was received
	Sent      bool // the request was given to the transport
}

type Page

type Page struct {
	Offset   int `json:"offset"`
	Limit    int `json:"limit,omitempty"`
	Returned int `json:"returned"`
}

Page is the slice of a list response that was returned.

type ParamError

type ParamError struct {
	Operation string
	Name      string
	Reason    string
}

func (ParamError) Error

func (e ParamError) Error() string

Jump to

Keyboard shortcuts

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