Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type P2P ¶
type P2P struct { ListenInterval int AdvertiseInterval int AdminMode bool ListenURI string Transport api.Transport Node api.Node // contains filtered or unexported fields }
P2P - a policy which makes peer-to-peer connections without a priori knowledge of peers
func New ¶
func New(transport api.Transport, listenURI string, node api.Node, adminMode bool, listenInterval int, advertiseInterval int) *P2P
New : Returns a new instance of a P2P Connection Policy
func (*P2P) GetTransport ¶
GetTransport : Returns the transports associated with this policy
func (*P2P) IsAdvertising ¶
IsAdvertising - returns true if this policy is advertising
func (*P2P) IsListening ¶
IsListening - returns true if this policy is listening
func (*P2P) MarshalJSON ¶
MarshalJSON : Create a serialied representation of the config of this policy
Click to show internal directories.
Click to hide internal directories.