File: conflict_delegate.go

package info (click to toggle)
golang-github-hashicorp-memberlist 0.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 560 kB
  • sloc: sh: 26; makefile: 16
file content (10 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
package memberlist

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