github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/p2p/unicast/manager_config.go (about) 1 package unicast 2 3 import ( 4 "github.com/rs/zerolog" 5 6 "github.com/onflow/flow-go/model/flow" 7 "github.com/onflow/flow-go/module" 8 "github.com/onflow/flow-go/network/netconf" 9 "github.com/onflow/flow-go/network/p2p" 10 ) 11 12 type ManagerConfig struct { 13 Logger zerolog.Logger `validate:"required"` 14 StreamFactory p2p.StreamFactory `validate:"required"` 15 SporkId flow.Identifier `validate:"required"` 16 Metrics module.UnicastManagerMetrics `validate:"required"` 17 18 Parameters *netconf.UnicastManager `validate:"required"` 19 20 // UnicastConfigCacheFactory is a factory function to create a new dial config cache. 21 UnicastConfigCacheFactory DialConfigCacheFactory `validate:"required"` 22 }