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.
Click to show internal directories.
Click to hide internal directories.