| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Auth::Kokolores::Plugin; |
|
2
|
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
4291
|
use Moose; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: base class for kokolores plugins |
|
6
|
|
|
|
|
|
|
our $VERSION = '1.00'; # VERSION |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has 'name' => ( is => 'ro', isa => 'Str', required => 1 ); |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'server' => ( |
|
11
|
|
|
|
|
|
|
is => 'ro', |
|
12
|
|
|
|
|
|
|
isa => 'Net::Server', |
|
13
|
|
|
|
|
|
|
required => 1, |
|
14
|
|
|
|
|
|
|
handles => { |
|
15
|
|
|
|
|
|
|
log => 'log', |
|
16
|
|
|
|
|
|
|
}, |
|
17
|
|
|
|
|
|
|
); |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub init { |
|
20
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
|
21
|
0
|
|
|
|
|
|
return; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub child_init { |
|
25
|
0
|
|
|
0
|
0
|
|
my ( $self, $server ) = @_; |
|
26
|
0
|
|
|
|
|
|
return; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub authenticate { |
|
30
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
|
31
|
0
|
|
|
|
|
|
return 0; |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub shutdown { |
|
35
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
|
36
|
0
|
|
|
|
|
|
return; |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=pod |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding UTF-8 |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Auth::Kokolores::Plugin - base class for kokolores plugins |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
version 1.00 |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Markus Benning <ich@markusbenning.de> |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This software is Copyright (c) 2016 by Markus Benning <ich@markusbenning.de>. |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This is free software, licensed under: |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The GNU General Public License, Version 2, June 1991 |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |