Documentation ¶
Overview ¶
Package roles is intended to provide Roles Based access controls for users and channels. This is a work in progress, and is likely to chnage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext retrieves a set of roles from the current context
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements support for user roles
func (*Handler) ProcessMessage ¶
func (h *Handler) ProcessMessage(ctx context.Context, w hugot.ResponseWriter, m *hugot.Message) error
ProcessMessage adds any roles the user has to the context
Click to show internal directories.
Click to hide internal directories.