File: Session.pm

package info (click to toggle)
munin 2.0.76-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,064 kB
  • sloc: perl: 11,684; java: 1,924; sh: 1,632; makefile: 636; javascript: 365; python: 267
file content (47 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package Munin::Node::Session;

use warnings;
use strict;


sub new {
    my ($class) = @_;

    my $self = {
        tls_started  => 0,
        peer_address => '',
        capabilities => {},
    };

    return bless $self, $class;
}


1;

__END__

=head1 NAME

Munin::Node::Session - Stores the state for the session between a node
and a master.


=head1 SYNOPSIS

 $session = Munin::Node::Session->new();
 $session->{capabilities} = { foo => 1, bar => 1};


=head1 METHODS

=over

=item B<new>

 $class->new();

Constructor.

=back