package
1.0.3
Repository: https://github.com/giantswarm/microkit.git
Documentation: pkg.go.dev

# Functions

DefaultResponseErrorConfig provides a default configuration to create a new response error by best effort.
DefaultResponseWriterConfig provides a default configuration to create a new response writer by best effort.
IsInvalidConfig asserts invalidConfigError.
IsInvalidContext asserts invalidContextError.
IsInvalidTransactionID asserts invalidTransactionIDError.
IsServerClosed asserts serverClosedError.
New creates a new configured server object.
New creates a new configured response error.
New creates a new configured response writer.

# Variables

CodeAccountExpired indicates the login attempt failed due to an expired account.
CodeFailure indicates the requested action failed.
CodeImmutableAttribute indicates the provided data structure contains fields that are immutable.
CodeInternalError represents an error we don't want to give more details about (usually HTTP status 500).
CodeInvalidCredentials indicates the provided credentials are not valid.nolint:gosec.
CodeInvalidInput indicates the user provided some input that does not validate (usually HTTP status 400).
CodeNotSupported indicates that the resource is not supported.
CodeNotYetAvailable indicates that the API operation used is not ready yet.
CodePermissionDenied indicates the provided credentials are valid, but the requested resource requires other permissions.
CodeResourceAlreadyExists indicates a resource does already exist.
CodeResourceCreated indicates a resource has been created.
CodeResourceDeleted indicates a resource has been deleted.
CodeResourceDeletionStarted indicates a resource will be deleted.
CodeResourceNotFound indicates a resource could not be found.
CodeResourceUpdated indicates a resource has been updated.
CodeSuccess indicates the requested action successed.
CodeTooManyRequests indicates the client is making too many requests.
CodeUnknownAttribute indicates the provided data structure contains unexpected fields.

# Structs

No description provided by the author
ResponseErrorConfig represents the configuration used to create a new response error.
ResponseWriterConfig represents the configuration used to create a new response writer.

# Interfaces

Endpoint represents the management of transport logic.
ResponseError is a wrapper for errors passed to the client's error encoder to propagate specific response information in error cases.
ResponseWriter is a wrapper for http.ResponseWriter to track the written status code.
Server manages the HTTP transport logic.