Documentation ¶
Index ¶
- Constants
- type Checker
- type Config
- type Configurer
- type Plugin
- func (c *Plugin) CollectCheckerImpls(name endure.Named, r Checker) error
- func (c *Plugin) CollectReadinessImpls(name endure.Named, r Readiness) error
- func (c *Plugin) Collects() []any
- func (c *Plugin) Init(log *zap.Logger, cfg Configurer) error
- func (c *Plugin) Name() string
- func (c *Plugin) RPC() any
- func (c *Plugin) Serve() chan error
- func (c *Plugin) Stop() error
- type Plugins
- type Readiness
Constants ¶
View Source
const (
// PluginName declares public plugin name.
PluginName = "status"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Address of the http server Address string UnavailableStatusCode int `mapstructure:"unavailable_status_code"` }
Config is the configuration reference for the Status plugin
type Configurer ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CollectCheckerImpls ¶
CollectCheckerImpls collects services which can provide Status.
func (*Plugin) CollectReadinessImpls ¶
CollectReadinessImpls collects services which can provide Readiness check.
Click to show internal directories.
Click to hide internal directories.