Documentation ¶
Overview ¶
Package mask provides a permissions.Handler implementation that works with traditional nick!user@host masks
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatch = errors.New("no mask matches")
ErrNoMatch is returned when there is no matching entry to a given EphemeralUser
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an IRC mask based permission handler
func (*Handler) IsAuthorised ¶
func (h *Handler) IsAuthorised(userToCheck *user.EphemeralUser, requiredPermissions []string) (bool, error)
IsAuthorised implements permissions.Handler
Click to show internal directories.
Click to hide internal directories.