// Init registers a new instance of overlay driver
Init registers a new instance of overlay driver
// Init registers a new instance of overlay driver
func Init(dc driverapi.DriverCallback, config map[string]interface{}) error {
	once.Do(onceInit)
	c := driverapi.Capability{
		DataScope: datastore.GlobalScope,
	}
	d := &driver{
		networks: networkTable{},
		peerDb: peerNetworkMap{
			mp: map[string]peerMap{},
		},
		config: config,
	}
	return dc.RegisterDriver(networkType, d, c)
}
func Init ( dc driverapi . DriverCallback , config map [ string ] interface { } ) error { once . Do ( onceInit ) c := driverapi . Capability { DataScope : datastore . GlobalScope , } d := & driver { networks : networkTable { } , peerDb : peerNetworkMap { mp : map [ string ] peerMap { } , } , config : config , } return dc . RegisterDriver ( networkType , d , c ) }
Init registers a new instance of overlay driver
Init registers a new instance of overlay driver