{"modulePath":"github.com/Overclock-Validator/keep-core","version":"v0.0.0-20240806202947-369a1d73b513","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package interception\n\n## Types\n\n```go\ntype Network interface {\n\tBroadcastChannelFor(name string) (net.BroadcastChannel, error)\n}\n```\nNetwork is the local test network implementation capable of intercepting network messages and modifying/dropping them based on rules passed to the network.\n\n```go\nfunc NewNetwork(\n\tprovider net.Provider,\n\trules Rules,\n) Network\n```\nNewNetwork creates a new instance of Network interface implementation with message filtering rules passed as a parameter.\n\n```go\ntype Rules = func(msg net.TaggedMarshaler) net.TaggedMarshaler\n```\nRules 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.\n\n","path":"github.com/Overclock-Validator/keep-core/pkg/internal/interception","name":"interception","synopsis":"","isRedistributable":true}
