| 1 | package Net::NATS2::ConnectInfo; | ||||||||||
| 2 | |||||||||||
| 3 | 5 | ▶ | use v5.10; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 5 | ▶ | use Net::NATS2::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 5 | has verbose => 0; | |||||||||
| 10 | 5 | has pedantic => 0; | |||||||||
| 11 | 5 | has tls_required => 0; | |||||||||
| 12 | 5 | has headers => 0; | |||||||||
| 13 | 5 | has $_ for qw(auth_token user pass name lang version nkey sig); | |||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub ssl_required { | ||||||||
|
Subroutine
ssl_required: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 0 | goto &tls_required; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | ▶ | sub TO_JSON { | ||||||||
|
Subroutine
TO_JSON: called CC=5 SCAR=16.8
Pod
undocumented
| |||||||||||
| 20 | 1 | my $self = shift; | |||||||||
| 21 | 1 | my $hash = {%{$self}}; | |||||||||
| 22 | 1 | ▶ | $hash->{verbose} = $self->verbose ? \1 : \0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 1 | ▶ | $hash->{pedantic} = $self->pedantic ? \1 : \0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 1 | ▶ | $hash->{tls_required} = $self->tls_required ? \1 : \0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 1 | ▶ | $hash->{headers} = $self->headers ? \1 : \0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 1 | return $hash; | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 5 | 1; | |||||||||