common

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStatus added in v0.0.18

func CheckStatus(action string, statusCode int, body []byte, expected ...int) error

CheckStatus returns an *APIError unless the status code is one of the expected ones

func CreateAuthRequestEditorFunc

func CreateAuthRequestEditorFunc(cfg *config.ClientConfig) interface{}

CreateAuthRequestEditorFunc returns a function that adds authentication to requests

Types

type APIError added in v0.0.18

type APIError struct {
	StatusCode int
	Body       []byte
}

APIError is returned when the server responds with an unexpected status code

func (*APIError) Error added in v0.0.18

func (e *APIError) Error() string

Jump to

Keyboard shortcuts

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