Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blacklist ¶
type Blacklist struct {
// contains filtered or unexported fields
}
Blacklist is a list of IDs that is blacklisted.
type Blacklists ¶
type Blacklists []*Blacklist
Blacklists contains multiple blacklists.
func FromContext ¶
func FromContext(ctx context.Context) Blacklists
FromContext returns the blacklists from the given context.
func (Blacklists) Contains ¶
func (b Blacklists) Contains(id string) bool
Contains returns whether any of the blacklists contains the given ID.
Click to show internal directories.
Click to hide internal directories.