gin

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func NewRunServer(next RunServer) RunServer

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

func NewRunServerWithLogger(next RunServer, l logging.Logger) RunServer

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL