Skip to content
Snippets Groups Projects
Select Git revision
  • f63b150e4afb535a79d40581482eb07ba7df4131
  • master default protected
  • 3.0
  • develop
  • revert-2069-tripleVersion
  • 3.1
  • rest-protocol
  • feat/remoting_rocketmq
  • dapr-support
  • 1.5
  • 1.4
  • 1.3
  • 1.2
  • 1.1
  • v3.0.3-rc2
  • v3.0.3-rc1
  • v3.0.2
  • v1.5.8
  • v1.5.9-rc1
  • v3.0.1
  • v1.5.8-rc1
  • v3.0.0
  • v3.0.0-rc4-1
  • v3.0.0-rc4
  • v3.0.0-rc3
  • v1.5.7
  • v1.5.7-rc2
  • v3.0.0-rc2
  • remove
  • v1.5.7-rc1
  • v3.0.0-rc1
  • v1.5.7-rc1-tmp
  • 1.5.6
  • v1.5.6
34 results

failover_cluster.go

Blame
  • user avatar
    vito.he authored
    01e16d78
    History
    failover_cluster.go 512 B
    package cluster
    
    import (
    	"github.com/dubbo/go-for-apache-dubbo/cluster"
    	"github.com/dubbo/go-for-apache-dubbo/common/extension"
    	"github.com/dubbo/go-for-apache-dubbo/protocol"
    )
    
    type failoverCluster struct {
    }
    
    const name = "failover"
    
    func init() {
    	extension.SetCluster(name, newFailoverCluster)
    }
    
    func newFailoverCluster() cluster.Cluster {
    	return &failoverCluster{}
    }
    
    func (cluster *failoverCluster) Join(directory cluster.Directory) protocol.Invoker {
    	return newFailoverClusterInvoker(directory)
    }