Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(e config.ExtraConfig) gin.HandlerFunc
New returns a gin.HandlerFunc with the CORS configuration provided in the ExtraConfig
Types ¶
type RunServer ¶
RunServer defines the interface of a function used by the KrakenD router to start the service
func NewRunServer ¶
NewRunServer returns a RunServer wrapping the injected one with a CORS middleware, so it is called before the actual router checks the URL, method and other details related to selecting the proper handler for the incoming request
func NewRunServerWithLogger ¶
NewRunServerWithLogger returns a RunServer wrapping the injected one with a CORS middleware, so it is called before the actual router checks the URL, method and other details related to selecting the proper handler for the incoming request