github.com/ethersphere/bee/v2@v2.2.0/pkg/discovery/discovery.go (about)

     1  // Copyright 2020 The Swarm Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package discovery exposes the discovery driver interface
     6  // which is implemented by discovery protocols.
     7  package discovery
     8  
     9  import (
    10  	"context"
    11  
    12  	"github.com/ethersphere/bee/v2/pkg/swarm"
    13  )
    14  
    15  type Driver interface {
    16  	BroadcastPeers(ctx context.Context, addressee swarm.Address, peers ...swarm.Address) error
    17  }