Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Plugins = []plugin.Plugin{ &LoggerPlugin{}, &MetricsPlugin{}, }
Functions ¶
This section is empty.
Types ¶
type LoggerPlugin ¶ added in v0.4.0
type LoggerPlugin struct {
// contains filtered or unexported fields
}
func (*LoggerPlugin) Init ¶ added in v0.4.0
func (l *LoggerPlugin) Init(env *plugin.Environment) error
Set log levels for each system (logger)
func (LoggerPlugin) Name ¶ added in v0.4.0
func (l LoggerPlugin) Name() string
func (LoggerPlugin) Version ¶ added in v0.4.0
func (l LoggerPlugin) Version() string
type MetricsPlugin ¶ added in v0.5.0
type MetricsPlugin struct {
// contains filtered or unexported fields
}
MetricsPlugin configures the OpenTelemetry metrics exporter into the default MeterProvider which can be retrieved via otel.GetMeterProvider.
See: https://pkg.go.dev/github.com/ipfs/kubo/plugin#Plugin
func (*MetricsPlugin) Close ¶ added in v0.5.0
func (m *MetricsPlugin) Close() error
Close safely shuts down the plugin.
func (*MetricsPlugin) Init ¶ added in v0.5.0
func (m *MetricsPlugin) Init(_ *plugin.Environment) error
Init initializes the kubo plugin (from environment variables).
func (MetricsPlugin) Name ¶ added in v0.5.0
func (m MetricsPlugin) Name() string
Name returns the name of the plugin.
func (MetricsPlugin) Version ¶ added in v0.5.0
func (m MetricsPlugin) Version() string
Version returns the version of the plugin.
Click to show internal directories.
Click to hide internal directories.