Gianni Ceccarelli

NAME

Net::Stomp::MooseHelpers::Types - type definitions for Net::Stomp::MooseHelpers

VERSION

version 2.3

TYPES

NetStompish

Any object that can connect, subscribe, unsubscribe, receive_frame, ack, send, send_frame.

Hostname

A string.

PortNumber

An integer between 1 and 65535.

ServerConfig

A hashref with these keys:

hostname

with value matching "Hostname"

port

value matching "PortNumber"

connect_headers

optional, a hashref value (credentials go here, as login / passcode)

subscribe_headers

optional, a hashref value

ssl

optional boolean, defaults to false

ssl_options

optional, a hashref value, passed to IO::Socket::SSL from inside Net::Stomp

See "connect" in Net::Stomp::MooseHelpers::CanConnect.

ServerConfigList

An arrayref of "ServerConfig" values. Can be coerced from a single "ServerConfig".

Headers

A hashref.

SubscriptionConfig

A hashref having a destination key (with a value matching "Destination"), and optionally a path_info key (with value matching "Path") and a headers key (with a hashref value). See "subscribe" in Net::Stomp::MooseHelpers::CanSubscribe.

SubscriptionConfigList

An arrayref of "SubscriptionConfig" values. Can be coerced from a single "SubscriptionConfig".

Destination

A string starting with /queue/ or /topic/.

Permissions, OctalPermissions

UNIX-style file-system permissions. Permissions is an integer type, suitable to be passed to chmod. OctalPermissions is a string type coercible to Permissions, allowing you to specify permissions in the usual "0644" form.

AUTHOR

Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Net-a-porter.com.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.