Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
Adapter defines http middleware contract. https://medium.com/@matryer/writing-middleware-in-golang-and-how-go-makes-it-so-much-fun-4375c1246e81
func BasicAuthentication ¶
func BasicAuthentication() Adapter
BasicAuthentication is a middleware to handle basic authentication.
func ClientAuthentication ¶
func ClientAuthentication(clients storage.ClientReader, supportedAlgorithms []jose.SignatureAlgorithm) Adapter
ClientAuthentication is a middleware to handle client authentication.
func SecurityHaders ¶
func SecurityHaders() Adapter
SecurityHaders is a middleware to add required security headers.
Click to show internal directories.
Click to hide internal directories.