package
0.3.9
Repository: https://github.com/oam-dev/kubevela.git
Documentation: pkg.go.dev

# Functions

AssembleResponse assembles response data to return.
ConstructError returns a new OpError.
GetContext get the context from the gin context.
HandleError will handle error.
NoRoute is a handler which is invoked when there is no route matches.
SetContext :Set context metadata for request Before get request.
SetErrorAndAbort is used to abort the rest of the handlers, mostly called in middleware.
SetRequestID ...
URL returns the URL of Dashboard based on default port.
ValidateHeaders validates the common headers.

# Constants

RESTful API paths.
RESTful API paths.
RESTful API paths.
ContentTypeJSON : json.
ContentTypeOctetStream: octet stream.
ContextKey is used as key to set/get context.
DefaultAPIServerPort refers to the default port number of APIServer.
RESTful API paths.
RESTful API paths.
HeaderClientIP is the real IP of the remote client.
Header Keys.
Header Keys.
HeaderRequestID is used as key to set/get request id.
HeaderTraceID is header name for trace id.
Be careful, below constants must be added to the errorDetails map.
Be careful, below constants must be added to the errorDetails map.
RESTful API paths.
RESTful API paths.
ServiceLogFields shared key service log fields.
Be careful, below constants must be added to the errorDetails map.
RESTful API paths.
Be careful, below constants must be added to the errorDetails map.
RESTful API paths.
RESTful API paths.

# Variables

DefaultDashboardPort refers to the default port number of dashboard.

# Type aliases

Code defines the error code type.
ContextKeyType defining the context key type for the middleware.