access

package
v0.0.0-...-3092a66 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL interface {
	Allowed(chat1.ChatChannel, Username) (bool, error)
}

func NewConstantACL

func NewConstantACL(allowed map[chat1.ChatChannel][]Username) ACL

type BadChannelError

type BadChannelError struct{}

func (BadChannelError) Error

func (BadChannelError) Error() string

type ConstantACL

type ConstantACL struct {
	// contains filtered or unexported fields
}

func (*ConstantACL) Allowed

func (c *ConstantACL) Allowed(channel chat1.ChatChannel, username Username) (bool, error)

type Username

type Username string

Jump to

Keyboard shortcuts

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