propaganda

package module
v0.0.0-...-e85c8da Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 1 Imported by: 0

README

📢 propaganda

HTTP-kit to propagate headers.

Build Documentation Quality Template Coverage Mirror

💡 Idea

...

A full description of the idea is available here.

🏆 Motivation

...

🤼‍♂️ How to

...

🧩 Integration

The library uses SemVer for versioning, and it is not BC-safe through major releases. You can use go modules to manage its version.

$ go get go.octolab.org/propaganda@latest

made with ❤️ for everyone

Documentation

Index

Constants

View Source
const (
	XDeadline  = "X-Deadline"
	XFeatures  = "X-Features"
	XRequestID = "X-Request-Id"
	XSource    = "X-Source"
	XTimeout   = "X-Timeout"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input = func(http.Handler) http.Handler

The Input represents a middleware for a http.Handler.

server := http.Server{
	Handler: Input1(Input2(http.DefaultServeMux)),
}

type Output

type Output = func(http.RoundTripper) http.RoundTripper

The Output represents a middleware for a http.RoundTripper.

client := http.Client{
	Transport: Output1(Output2(http.DefaultTransport)),
}

Jump to

Keyboard shortcuts

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