# Functions
CustomErrorEndpointHandler returns a HandlerFactory using the injected ToHTTPError function and logger.
DebugHandler creates a dummy handler function, useful for quick integration tests.
DefaultFactory returns a gin router factory with the injected proxy factory and logger.
DefaultVicgFactory 创建用户代理工厂.
EchoHandler creates a dummy handler function, useful for quick integration tests.
NewEngine returns an initialized gin engine.
NewFactory returns a gin router factory with the injected configuration.
NewRequest gets a request from the current gin context and the received query string.
RegisterRender allows clients to register their custom renders.
# Variables
EndpointHandler implements the HandlerFactory interface using the default ToHTTPError function.
ErrorResponseWriter writes the string representation of an error into the response body and sets a Content-Type header for errors that implement the encodedResponseError interface.
# Structs
Config is the struct that collects the parts the router should be builded from.
No description provided by the author
# Interfaces
VicgFactory 用户自定义的代理工厂.
# Type aliases
BuildInfraFunc 基于额外参数构建用户自定义结构.
HandlerFactory creates a handler function that adapts the gin router with the injected proxy.
No description provided by the author
Render defines the signature of the functions to be use for the final response encoding and rendering.
RunServerFunc is a func that will run the http Server with the given params.