middleware

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(cmd oodle.Command, middlewares ...Middleware) oodle.Command

Chain lets you chain multiple middleware

Types

type Middleware

type Middleware func(oodle.Command) oodle.Command

func AdminOnly

func AdminOnly(check oodle.Checker) Middleware

func MinArg

func MinArg(l int) Middleware

func RateLimit

func RateLimit(limit int, duration time.Duration) Middleware

func RegisteredOnly

func RegisteredOnly(check oodle.Checker) Middleware

Jump to

Keyboard shortcuts

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