lura

package
v0.0.0-...-63ab3e1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const NEGOTIATE = "negotiate"

NEGOTIATE defines the value of the OutputEncoding for the negotiated render

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts Opts) (caddyhttp.Handler, error)

func RegisterRender

func RegisterRender(name string, r Render)

RegisterRender allows clients to register their custom renders

Types

type Opts

type Opts struct {
	ServiceConfig config.ServiceConfig
	ZapLogger     *zap.Logger
	DebugPattern  string
	EchoPattern   string
}

type Render

type Render func(http.ResponseWriter, *proxy.Response) error

Render defines the signature of the functions to be use for the final response encoding and rendering

Jump to

Keyboard shortcuts

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