middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWKS

func JWKS(allowedServers map[string]struct{}) gin.HandlerFunc

Accepts a list of Charm server hosts allowed for publishing in this Tavern instance. If the list is empty, any charm host is allowed.

func Uploads

func Uploads(dir string, memLimit int64) gin.HandlerFunc

Types

type HTTPUploads

type HTTPUploads struct {
	// contains filtered or unexported fields
}

func (*HTTPUploads) ServeHTTP

func (m *HTTPUploads) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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