check

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable bool
}

Config ...

func RawConfig

func RawConfig(key string) *Config

RawConfig ...

func StdConfig

func StdConfig(key string) *Config

StdConfig ...

func (*Config) Build

func (c *Config) Build() *HealthCheck

Build new a instance

type DataSource

type DataSource interface {
	DoHealthCheck() (resHealthCheck *view.ResHealthCheck, err error)
	LoadExtConfig(extConfig string) (err error)
}

DataSource interface

func Get

func Get(reflect []reflect.Value) (DataSource, error)

Get return HealthCheck instance

type HealthCheck

type HealthCheck struct {
	// contains filtered or unexported fields
}

MysqlHealthCheck ...

func (*HealthCheck) DoHealthCheck

func (h *HealthCheck) DoHealthCheck(componentType string, extConfig string) (checkResult *view.ResHealthCheck, err error)

func (*HealthCheck) HealthCheck

func (h *HealthCheck) HealthCheck(req model.CheckReq) (checkResults []*view.ResHealthCheck)

HealthCheck detection of service dependency

Directories

Path Synopsis
impl
tcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL