metrics

package
v0.0.94 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Package__so2f3v = &core.Package{
		PackageName: "namespacelabs.dev/foundation/std/go/grpc/metrics",
	}

	Provider__so2f3v = core.Provider{
		Package:     Package__so2f3v,
		Instantiate: makeDeps__so2f3v,
	}

	Initializers__so2f3v = []*core.Initializer{
		{
			Package: Package__so2f3v,
			Do: func(ctx context.Context, di core.Dependencies) error {
				return di.Instantiate(ctx, Provider__so2f3v, func(ctx context.Context, v interface{}) error {
					return Prepare(ctx, v.(ExtensionDeps))
				})
			},
		},
	}
)

Functions

func Prepare

func Prepare(ctx context.Context, deps ExtensionDeps) error

Types

type ExtensionDeps

type ExtensionDeps struct {
	Interceptors interceptors.Registration
}

Dependencies that are instantiated once for the lifetime of the extension.

Jump to

Keyboard shortcuts

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