github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/framework/memberlist/conflict_delegate.go (about)

     1  package memberlist
     2  
     3  // ConflictDelegate is a used to inform a client that
     4  // a node has attempted to join which would result in a
     5  // name conflict. This happens if two clients are configured
     6  // with the same name but different addresses.
     7  type ConflictDelegate interface {
     8  	// NotifyConflict is invoked when a name conflict is detected
     9  	NotifyConflict(existing, other *Node)
    10  }