Documentation ¶ Index ¶ func Context(ctx context.Context) kong.Option func Metrics(registry *prometheus.Registry) []kong.Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Context ¶ func Context(ctx context.Context) kong.Option func Metrics ¶ func Metrics(registry *prometheus.Registry) []kong.Option Metrics binds the Prometheus registry to the Kong context. It registers the Go collector, build info collector, and process collector. If the registry is nil, a new registry is created. This allows to pass in one for testing. Types ¶ This section is empty. Source Files ¶ View all Source files binds.go Click to show internal directories. Click to hide internal directories.