wrapper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPWrapper

func HTTPWrapper(h http.Handler, sources ...TokenSource) http.Handler

Types

type TokenSource

type TokenSource struct {
	Type string `json:"type"` // Type of the token source: `query`, `header`
	Name string `json:"name"` // Name of the token source
}

func (TokenSource) Extract

func (ts TokenSource) Extract(r *http.Request) string

Jump to

Keyboard shortcuts

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