auth

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(c *config.Middleware) (middleware.Middleware, error)

Types

type Auth

type Auth struct {
	URL         string
	Method      string
	ContentType string
	Whitelist   []struct {
		Path   string
		Method string
	}
}

type RequestInfo

type RequestInfo struct {
	Path   string `json:"path"`
	Method string `json:"method"`
	Data   any    `json:"data"`
}

Jump to

Keyboard shortcuts

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