Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeOptString ¶
MakeOptString converts a string to its pointer if it's not a zero value.
func MakeString ¶
MakeString converts a string pointer to a string or a zero value if it's nil.
Types ¶
type ErrorHandler ¶
type ErrorHandler func(w http.ResponseWriter, r *http.Request, err error)
ErrorHandler handles translating errors to HTTP responses.
type HTTPError ¶
type HTTPError struct { // Err is the wrapped error. Err error // Status is the HTTP status code. Status int // Type is the OpenAPI error type, may be empty. Type string }
HTTPError is an error wrapper carrying an HTTP status code.
Directories ¶
Path | Synopsis |
---|---|
nekos
|
|
v2
Package v2 provides primitives to interact with the openapi HTTP API.
|
Package v2 provides primitives to interact with the openapi HTTP API. |
Package v1 provides primitives to interact with the openapi HTTP API.
|
Package v1 provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.