github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/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  }