Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpClient HTTPClient, baseURL string) *Client
type Code ¶
type Code string
Code is a Connect error code: https://connectrpc.com/docs/protocol#error-codes
const ( CodeCanceled Code = "canceled" CodeUnknown Code = "unknown" CodeInvalidArgument Code = "invalid_argument" CodeDeadlineExceeded Code = "deadline_exceeded" CodeNotFound Code = "not_found" CodeAlreadyExists Code = "already_exists" CodePermissionDenied Code = "permission_denied" CodeResourceExhausted Code = "resource_exhausted" CodeFailedPrecondition Code = "failed_precondition" CodeAborted Code = "aborted" CodeOutOfRange Code = "out_of_range" CodeUnimplemented Code = "unimplemented" CodeInternal Code = "internal" CodeDataLoss Code = "data_loss" CodeUnauthenticated Code = "unauthenticated" )
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a failed call. A handler returns one to choose the code its caller sees. A Client returns one for every call that fails.
type HTTPClient ¶
HTTPClient is the part of http.Client that a Client uses.
Click to show internal directories.
Click to hide internal directories.