Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBlacklistedID = errors.New("blacklist: Gateway ID is blacklisted") ErrBlacklistedIP = errors.New("blacklist: Gateway IP is blacklisted") )
Blacklist errors
Functions ¶
This section is empty.
Types ¶
type Blacklist ¶
type Blacklist struct {
// contains filtered or unexported fields
}
Blacklist middleware
func NewBlacklist ¶
NewBlacklist returns a middleware that filters traffic from blacklisted gateways
func (*Blacklist) FetchRemotes ¶
FetchRemotes fetches remote blacklists
func (*Blacklist) HandleStatus ¶
func (b *Blacklist) HandleStatus(ctx middleware.Context, msg *types.StatusMessage) error
HandleStatus blocks status messages from blacklisted gateways
func (*Blacklist) HandleUplink ¶
func (b *Blacklist) HandleUplink(_ middleware.Context, msg *types.UplinkMessage) error
HandleUplink blocks uplink messages from blacklisted gateways
Click to show internal directories.
Click to hide internal directories.