TestNetwork.TestGossipNet

Undocumented in source.

Members

Functions

add_channel
void add_channel(Pubkey channel)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty(Pubkey channel)
Undocumented in source. Be warned that the author may not have intended to support it.
gossip
const(Pubkey) gossip(ChannelFilter channel_filter, SenderCallBack sender)
Undocumented in source. Be warned that the author may not have intended to support it.
isValidChannel
bool isValidChannel(const(Pubkey) channel)
Undocumented in source. Be warned that the author may not have intended to support it.
receive
const(Document) receive(Pubkey channel)
Undocumented in source. Be warned that the author may not have intended to support it.
remove_channel
void remove_channel(Pubkey channel)
Undocumented in source. Be warned that the author may not have intended to support it.
select_channel
const(Pubkey) select_channel(ChannelFilter channel_filter)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(const(Pubkey) channel, const(HiRPC.Sender) sender)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(const(Pubkey) channel, const(Document) doc)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(const(Pubkey) channel, T pack)
Undocumented in source. Be warned that the author may not have intended to support it.
start_listening
void start_listening()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

time
const(sdt_t) time [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
time
const(sdt_t) time [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

online_states
bool[Pubkey] online_states;
Undocumented in source.

Variables

_current_time
sdt_t _current_time;
Undocumented in source.
channel_queues
ChannelQueue[Pubkey] channel_queues;
Undocumented in source.

Inherited Members

From GossipNet

ChannelFilter
alias ChannelFilter = bool delegate(const(Pubkey) channel) @(safe)
Undocumented in source.
SenderCallBack
alias SenderCallBack = const(HiRPC.Sender) delegate() @(safe)
Undocumented in source.
time
const(sdt_t) time()
Undocumented in source.
isValidChannel
bool isValidChannel(const(Pubkey) channel)
Undocumented in source.
add_channel
void add_channel(const(Pubkey) channel)
Undocumented in source.
remove_channel
void remove_channel(const(Pubkey) channel)
Undocumented in source.
gossip
const(Pubkey) gossip(const(ChannelFilter) channel_filter, const(SenderCallBack) sender)
Undocumented in source.
select_channel
const(Pubkey) select_channel(const(ChannelFilter) channel_filter)
Undocumented in source.

Meta