Documentation ¶
Index ¶
- type Config
- type Detector
- func (g *Detector) Destroy() error
- func (g *Detector) DetectInstance(ins model.Instance, rule *fault_tolerance.FaultDetectRule) (result healthcheck.DetectResult, err error)
- func (g *Detector) Init(ctx *plugin.InitContext) (err error)
- func (g *Detector) IsEnable(cfg config.Configuration) bool
- func (g *Detector) Name() string
- func (g *Detector) Protocol() fault_tolerance.FaultDetectRule_Protocol
- func (g *Detector) Type() common.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct { *plugin.PluginBase SendPackageBytes []byte ReceivePackageBytes [][]byte // contains filtered or unexported fields }
Detector TCP协议的实例健康探测器
func (*Detector) DetectInstance ¶
func (g *Detector) DetectInstance(ins model.Instance, rule *fault_tolerance.FaultDetectRule) (result healthcheck.DetectResult, err error)
DetectInstance 探测服务实例健康
func (*Detector) IsEnable ¶
func (g *Detector) IsEnable(cfg config.Configuration) bool
IsEnable enable
func (*Detector) Protocol ¶ added in v1.6.0
func (g *Detector) Protocol() fault_tolerance.FaultDetectRule_Protocol
Protocol .
Click to show internal directories.
Click to hide internal directories.