NAME
Net::Firewall::BlockerHelper::Util - Shared internal helpers mixed into the frontend and backends.
VERSION
Version 0.0.1
SYNOPSIS
This module is not used directly. It is a stateless mixin holding the internal helpers that would otherwise be copy/pasted into every backend. Both Net::Firewall::BlockerHelper and each backend under Net::Firewall::BlockerHelper::backends inherit from it alongside Error::Helper.
package Net::Firewall::BlockerHelper::backends::foo;
use base qw( Error::Helper Net::Firewall::BlockerHelper::Util );
# ...
sub ban_cidr {
my ( $self, %opts ) = @_;
if ( !$self->_valid_cidr( $opts{ban} ) ) {
# ... raise error 26 ...
}
}
DESCRIPTION
Everything here is an internal helper and carries a leading underscore. None of it is part of the public API and none of it is expected to be called from outside of the frontend or a backend. There is no constructor and no state is kept; the methods only exist here so that a single definition is shared instead of being duplicated per backend.
AUTHOR
Zane C. Bowers-Hadley, <vvelox at vvelox.ent>
BUGS
Please report any bugs or feature requests to bug-net-firewall-blockerhelper at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Firewall-BlockerHelper. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::Firewall::BlockerHelper
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Firewall-BlockerHelper
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2023 by Zane C. Bowers-Hadley.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999