Documentation ¶
Overview ¶
Package ha is default HaStrategy implements.
Index ¶
Constants ¶
View Source
const (
FailOver = "failover"
)
ext name
Variables ¶
This section is empty.
Functions ¶
func RegistDefaultHa ¶
func RegistDefaultHa(extFactory motan.ExtentionFactory)
Types ¶
type BackupRequestHA ¶
type BackupRequestHA struct {
// contains filtered or unexported fields
}
func (*BackupRequestHA) Call ¶
func (br *BackupRequestHA) Call(request motan.Request, loadBalance motan.LoadBalance) motan.Response
func (*BackupRequestHA) GetName ¶
func (br *BackupRequestHA) GetName() string
func (*BackupRequestHA) GetURL ¶
func (br *BackupRequestHA) GetURL() *motan.URL
func (*BackupRequestHA) Initialize ¶
func (br *BackupRequestHA) Initialize()
func (*BackupRequestHA) SetURL ¶
func (br *BackupRequestHA) SetURL(url *motan.URL)
type FailOverHA ¶
type FailOverHA struct {
// contains filtered or unexported fields
}
func (*FailOverHA) Call ¶
func (f *FailOverHA) Call(request motan.Request, loadBalance motan.LoadBalance) motan.Response
func (*FailOverHA) GetName ¶
func (f *FailOverHA) GetName() string
func (*FailOverHA) GetURL ¶
func (f *FailOverHA) GetURL() *motan.URL
func (*FailOverHA) SetURL ¶
func (f *FailOverHA) SetURL(url *motan.URL)
Click to show internal directories.
Click to hide internal directories.