middleware

package
v0.0.0-...-5ce0579 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	Enabled bool
	Keyring *keyring.Keyring
}

func (*Authentication) RequiredAuth

func (auth *Authentication) RequiredAuth(rules ...string) broc.Handler

type Middleware

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

func NewMiddleware

func NewMiddleware(middlewares map[string]interface{}) *Middleware

func (*Middleware) PacketHandler

func (m *Middleware) PacketHandler(ctx *broc.Context) (interface{}, error)

func (*Middleware) RequiredAuth

func (m *Middleware) RequiredAuth(rules ...string) broc.Handler

Jump to

Keyboard shortcuts

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