accesscontrol

package
v0.0.0-...-6e3aa5c Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package accesscontrol provides a middleware that allows you to restrict the commands the user can execute.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(cmds ...string) wish.Middleware

Middleware will exit 1 connections trying to execute commands that are not allowed. If no allowed commands are provided, no commands will be allowed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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