function

package
v0.0.0-...-df918ef Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Overview

Package function implements a simple single-function based permission handler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(userToCheck *user.EphemeralUser, requiredPermissions []string) (bool, error)

Handler implements permissions.Handler

func (Handler) IsAuthorised

func (h Handler) IsAuthorised(userToCheck *user.EphemeralUser, requiredPermissions []string) (bool, error)

IsAuthorised implements permissions.Handler

Jump to

Keyboard shortcuts

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