Documentation ¶
Index ¶
- Constants
- type Checker
- type Config
- type Plugin
- func (c *Plugin) Available()
- func (c *Plugin) CollectCheckerImpls(name endure.Named, r Checker) error
- func (c *Plugin) CollectReadinessImpls(name endure.Named, r Readiness) error
- func (c *Plugin) Collects() []interface{}
- func (c *Plugin) Init(log logger.Logger, cfg config.Configurer) error
- func (c *Plugin) Name() string
- func (c *Plugin) RPC() interface{}
- func (c *Plugin) Serve() chan error
- func (c *Plugin) Stop() error
- type Plugins
- type Readiness
- type Status
Constants ¶
View Source
const (
// PluginName declares public plugin name.
PluginName = "status"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
Status() Status
}
Checker interface used to get latest status from plugin
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
func (*Config) InitDefaults ¶ added in v2.0.4
func (c *Config) InitDefaults()
InitDefaults configuration options
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Available ¶ added in v2.2.0
func (c *Plugin) Available()
Available interface implementation
func (*Plugin) CollectCheckerImpls ¶ added in v2.0.4
CollectCheckerImpls collects services which can provide Status.
func (*Plugin) CollectReadinessImpls ¶ added in v2.0.4
CollectReadinessImpls collects services which can provide Readiness check.
Click to show internal directories.
Click to hide internal directories.