probe

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package probe provides health probes for components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BkRepoProbe

type BkRepoProbe struct{}

BkRepoProbe BkRepo 服务探针

func NewBkRepo

func NewBkRepo() *BkRepoProbe

NewBkRepo ...

func (*BkRepoProbe) Perform

func (p *BkRepoProbe) Perform(ctx context.Context) *Result

Perform ...

type GinProbe

type GinProbe struct{}

GinProbe Gin 服务探针

func NewGin

func NewGin() *GinProbe

NewGin ...

func (GinProbe) Perform

func (p GinProbe) Perform(_ context.Context) *Result

Perform ...

type HealthProbe

type HealthProbe interface {
	// Perform 执行探针
	Perform(ctx context.Context) *Result
}

HealthProbe 健康探针

type MysqlProbe

type MysqlProbe struct{}

MysqlProbe Mysql 服务探针

func NewMysql

func NewMysql() *MysqlProbe

NewMysql ...

func (*MysqlProbe) Perform

func (p *MysqlProbe) Perform(ctx context.Context) *Result

Perform ...

type RedisProbe

type RedisProbe struct{}

RedisProbe redis 服务探针

func NewRedis

func NewRedis() *RedisProbe

NewRedis ...

func (*RedisProbe) Perform

func (p *RedisProbe) Perform(ctx context.Context) *Result

Perform ...

type Result

type Result struct {
	Name     string `json:"name"`
	Core     bool   `json:"core"`
	Healthy  bool   `json:"healthy"`
	Endpoint string `json:"endpoint"`
	Issue    string `json:"issue"`
}

Result 健康探针结果

Jump to

Keyboard shortcuts

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