api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 8 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

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.2 DO NOT EDIT.

Package api holds the actp server's HTTP types and handlers generated from openapi.yaml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetInfoRequest

func NewGetInfoRequest(server string) (*http.Request, error)

NewGetInfoRequest constructs an http.Request for the GetInfo method

func NewListAgentsRequest

func NewListAgentsRequest(server string) (*http.Request, error)

NewListAgentsRequest constructs an http.Request for the ListAgents method

func NewOpenLinkRequest

func NewOpenLinkRequest(server string, agentId AgentId, params *OpenLinkParams) (*http.Request, error)

NewOpenLinkRequest constructs an http.Request for the OpenLink method

Types

type Agent

type Agent struct {
	// AgentCapabilities The agent's ACP `agentCapabilities` from its last `initialize`. A hint only.
	AgentCapabilities *map[string]interface{} `json:"agentCapabilities,omitempty"`
	AgentInfo         *AgentInfo              `json:"agentInfo,omitempty"`

	// AuthHint What to do on the agent host to log in, from the agent itself.
	AuthHint    *string `json:"authHint,omitempty"`
	Description *string `json:"description,omitempty"`
	Error       *string `json:"error,omitempty"`
	Id          AgentId `json:"id"`
	Name        *string `json:"name,omitempty"`

	// Status `ready`: the agent started and worked. `auth_required`: the agent needs a login on the agent host (see `authHint`). `unavailable`: the agent failed to start (see `error`). `unknown`: not probed yet.
	Status AgentStatus `json:"status"`

	// Workspaces Workspaces this token may use with this agent.
	Workspaces []Workspace `json:"workspaces"`
}

Agent defines model for Agent.

type AgentId

type AgentId = string

AgentId defines model for AgentId.

type AgentInfo

type AgentInfo struct {
	Name    *string `json:"name,omitempty"`
	Title   *string `json:"title,omitempty"`
	Version *string `json:"version,omitempty"`
}

AgentInfo defines model for AgentInfo.

type AgentList

type AgentList struct {
	Agents []Agent `json:"agents"`
}

AgentList defines model for AgentList.

type AgentStatus

type AgentStatus string

AgentStatus `ready`: the agent started and worked. `auth_required`: the agent needs a login on the agent host (see `authHint`). `unavailable`: the agent failed to start (see `error`). `unknown`: not probed yet.

const (
	AuthRequired AgentStatus = "auth_required"
	Ready        AgentStatus = "ready"
	Unavailable  AgentStatus = "unavailable"
	Unknown      AgentStatus = "unknown"
)

Defines values for AgentStatus.

func (AgentStatus) Valid

func (e AgentStatus) Valid() bool

Valid indicates whether the value is a known member of the AgentStatus enum.

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHealth Liveness check

Corresponds with GET /health (the `GetHealth` operationId).

func (*Client) GetInfo

func (c *Client) GetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetInfo Server metadata

Corresponds with GET /api/v1/info (the `GetInfo` operationId).

func (*Client) ListAgents

func (c *Client) ListAgents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAgents Agents this token may use

Corresponds with GET /api/v1/agents (the `ListAgents` operationId).

func (c *Client) OpenLink(ctx context.Context, agentId AgentId, params *OpenLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)

OpenLink Open or resume a link (WebSocket upgrade)

Opens a new link to an agent, or resumes an existing one when `Actp-Link-Id` and `Actp-Last-Seq` are sent. The request must be a WebSocket upgrade offering a supported wire version as subprotocol (for example `actp.v1`). See `docs/wire.md`.

Corresponds with GET /actp/v1/agents/{agentId}/link (the `OpenLink` operationId).

type ClientInterface

type ClientInterface interface {

	// OpenLink Open or resume a link (WebSocket upgrade)
	//
	// Opens a new link to an agent, or resumes an existing one when `Actp-Link-Id` and `Actp-Last-Seq` are sent. The request must be a WebSocket upgrade offering a supported wire version as subprotocol (for example `actp.v1`). See `docs/wire.md`.
	//
	// Corresponds with GET /actp/v1/agents/{agentId}/link (the `OpenLink` operationId).
	OpenLink(ctx context.Context, agentId AgentId, params *OpenLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAgents Agents this token may use
	//
	// Corresponds with GET /api/v1/agents (the `ListAgents` operationId).
	ListAgents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInfo Server metadata
	//
	// Corresponds with GET /api/v1/info (the `GetInfo` operationId).
	GetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHealth Liveness check
	//
	// Corresponds with GET /health (the `GetHealth` operationId).
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Liveness check

Returns a wrapper object for the known response body format(s).

Corresponds with GET /health (the `GetHealth` operationId).

func (*ClientWithResponses) GetInfoWithResponse

func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)

GetInfoWithResponse Server metadata

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/info (the `GetInfo` operationId).

func (*ClientWithResponses) ListAgentsWithResponse

func (c *ClientWithResponses) ListAgentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAgentsResponse, error)

ListAgentsWithResponse Agents this token may use

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/agents (the `ListAgents` operationId).

func (*ClientWithResponses) OpenLinkWithResponse

func (c *ClientWithResponses) OpenLinkWithResponse(ctx context.Context, agentId AgentId, params *OpenLinkParams, reqEditors ...RequestEditorFn) (*OpenLinkResponse, error)

OpenLinkWithResponse Open or resume a link (WebSocket upgrade)

Opens a new link to an agent, or resumes an existing one when `Actp-Link-Id` and `Actp-Last-Seq` are sent. The request must be a WebSocket upgrade offering a supported wire version as subprotocol (for example `actp.v1`). See `docs/wire.md`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /actp/v1/agents/{agentId}/link (the `OpenLink` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// OpenLinkWithResponse Open or resume a link (WebSocket upgrade)
	//
	// Opens a new link to an agent, or resumes an existing one when `Actp-Link-Id` and `Actp-Last-Seq` are sent. The request must be a WebSocket upgrade offering a supported wire version as subprotocol (for example `actp.v1`). See `docs/wire.md`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /actp/v1/agents/{agentId}/link (the `OpenLink` operationId).
	OpenLinkWithResponse(ctx context.Context, agentId AgentId, params *OpenLinkParams, reqEditors ...RequestEditorFn) (*OpenLinkResponse, error)

	// ListAgentsWithResponse Agents this token may use
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/agents (the `ListAgents` operationId).
	ListAgentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAgentsResponse, error)

	// GetInfoWithResponse Server metadata
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/info (the `GetInfo` operationId).
	GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)

	// GetHealthWithResponse Liveness check
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /health (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Error

type Error struct {
	// Error Machine-readable code, for example `unauthorized`.
	Error string `json:"error"`

	// Message Human-readable explanation.
	Message *string `json:"message,omitempty"`
}

Error defines model for Error.

type Forbidden

type Forbidden = Error

Forbidden defines model for Forbidden.

type GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Health
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType

func (r GetHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthResponse) GetBody

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200

func (r GetHealthResponse) GetJSON200() *Health

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInfoResponse

type GetInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Info
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
}

func ParseGetInfoResponse

func ParseGetInfoResponse(rsp *http.Response) (*GetInfoResponse, error)

ParseGetInfoResponse parses an HTTP response from a GetInfoWithResponse call

func (GetInfoResponse) ContentType

func (r GetInfoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetInfoResponse) GetBody

func (r GetInfoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetInfoResponse) GetJSON200

func (r GetInfoResponse) GetJSON200() *Info

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetInfoResponse) GetJSON401

func (r GetInfoResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetInfoResponse) Status

func (r GetInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetInfoResponse) StatusCode

func (r GetInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Health

type Health struct {
	Ok bool `json:"ok"`
}

Health defines model for Health.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Info

type Info struct {
	// Name Display name of the server.
	Name *string `json:"name,omitempty"`

	// PromptTimeoutSeconds Seconds an unanswered prompt waits for a dropped client.
	PromptTimeoutSeconds int `json:"promptTimeoutSeconds"`

	// PublicUrl The public URL when the server runs a tunnel.
	PublicUrl *string `json:"publicUrl,omitempty"`

	// Version actp version, for example `0.1.0`.
	Version string `json:"version"`

	// WireVersions Wire versions the server supports, newest first.
	WireVersions []string `json:"wireVersions"`
}

Info defines model for Info.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type ListAgentsResponse

type ListAgentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AgentList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
}

func ParseListAgentsResponse

func ParseListAgentsResponse(rsp *http.Response) (*ListAgentsResponse, error)

ParseListAgentsResponse parses an HTTP response from a ListAgentsWithResponse call

func (ListAgentsResponse) ContentType

func (r ListAgentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAgentsResponse) GetBody

func (r ListAgentsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAgentsResponse) GetJSON200

func (r ListAgentsResponse) GetJSON200() *AgentList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAgentsResponse) GetJSON401

func (r ListAgentsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListAgentsResponse) Status

func (r ListAgentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAgentsResponse) StatusCode

func (r ListAgentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type NotFound

type NotFound = Error

NotFound defines model for NotFound.

type OpenLinkParams

type OpenLinkParams struct {
	// SecWebSocketProtocol Wire versions the bridge supports, for example `actp.v1`. Without a supported version the server answers 426.
	SecWebSocketProtocol *string `json:"Sec-WebSocket-Protocol,omitempty"`

	// ActpClientName Display name of the client, for logs and the tray.
	ActpClientName *string `json:"Actp-Client-Name,omitempty"`

	// ActpLinkId Resume this link. Requires `Actp-Last-Seq`.
	ActpLinkId *string `json:"Actp-Link-Id,omitempty"`

	// ActpLastSeq Highest server sequence number the bridge has processed.
	ActpLastSeq *int64 `json:"Actp-Last-Seq,omitempty"`
}

OpenLinkParams defines parameters for OpenLink.

type OpenLinkResponse

type OpenLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Error
	// JSON410 the response for an HTTP 410 `application/json` response
	JSON410 *Error
	// JSON426 the response for an HTTP 426 `application/json` response
	JSON426 *Error
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *Error
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *Error
	// Headers101 the parsed response headers for an HTTP 101 response
	Headers101 *OpenLinkResponse101Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *OpenLinkResponse429Headers
}

func ParseOpenLinkResponse

func ParseOpenLinkResponse(rsp *http.Response) (*OpenLinkResponse, error)

ParseOpenLinkResponse parses an HTTP response from a OpenLinkWithResponse call

func (OpenLinkResponse) ContentType

func (r OpenLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (OpenLinkResponse) GetBody

func (r OpenLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (OpenLinkResponse) GetJSON400

func (r OpenLinkResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (OpenLinkResponse) GetJSON401

func (r OpenLinkResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (OpenLinkResponse) GetJSON403

func (r OpenLinkResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (OpenLinkResponse) GetJSON404

func (r OpenLinkResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (OpenLinkResponse) GetJSON409

func (r OpenLinkResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (OpenLinkResponse) GetJSON410

func (r OpenLinkResponse) GetJSON410() *Error

GetJSON410 returns the response for an HTTP 410 `application/json` response

func (OpenLinkResponse) GetJSON426

func (r OpenLinkResponse) GetJSON426() *Error

GetJSON426 returns the response for an HTTP 426 `application/json` response

func (OpenLinkResponse) GetJSON429

func (r OpenLinkResponse) GetJSON429() *Error

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (OpenLinkResponse) GetJSON503

func (r OpenLinkResponse) GetJSON503() *Error

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (OpenLinkResponse) Status

func (r OpenLinkResponse) Status() string

Status returns HTTPResponse.Status

func (OpenLinkResponse) StatusCode

func (r OpenLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OpenLinkResponse101Headers

type OpenLinkResponse101Headers struct {
	ActpLastSeq       *int64
	ActpLinkId        *string
	ActpPromptTimeout *int
}

OpenLinkResponse101Headers the declared response headers of an HTTP 101 response for OpenLink

type OpenLinkResponse429Headers

type OpenLinkResponse429Headers struct {
	RetryAfter *int
}

OpenLinkResponse429Headers the declared response headers of an HTTP 429 response for OpenLink

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	http.Handler
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {
	// OpenLink Open or resume a link (WebSocket upgrade)
	// (GET /actp/v1/agents/{agentId}/link)
	OpenLink(w http.ResponseWriter, r *http.Request, agentId AgentId, params OpenLinkParams)
	// ListAgents Agents this token may use
	// (GET /api/v1/agents)
	ListAgents(w http.ResponseWriter, r *http.Request)
	// GetInfo Server metadata
	// (GET /api/v1/info)
	GetInfo(w http.ResponseWriter, r *http.Request)
	// GetHealth Liveness check
	// (GET /health)
	GetHealth(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) GetHealth

func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)

GetHealth operation middleware

func (*ServerInterfaceWrapper) GetInfo

GetInfo operation middleware

func (*ServerInterfaceWrapper) ListAgents

func (siw *ServerInterfaceWrapper) ListAgents(w http.ResponseWriter, r *http.Request)

ListAgents operation middleware

func (siw *ServerInterfaceWrapper) OpenLink(w http.ResponseWriter, r *http.Request)

OpenLink operation middleware

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Unauthorized

type Unauthorized = Error

Unauthorized defines model for Unauthorized.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type Workspace

type Workspace struct {
	Default *bool  `json:"default,omitempty"`
	Name    string `json:"name"`
}

Workspace defines model for Workspace.

Jump to

Keyboard shortcuts

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