Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network interface {
BroadcastChannelFor(name string) (net.BroadcastChannel, error)
}
Network is the local test network implementation capable of intercepting network messages and modifying/dropping them based on rules passed to the network.
type Rules ¶
type Rules = func(msg net.TaggedMarshaler) net.TaggedMarshaler
Rules defines the rules of intercepting network messages. Messages can be returned unmodified, they may be modified on the fly and they can be dropped by returning nil.
Click to show internal directories.
Click to hide internal directories.