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