logging

package
v0.0.367 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	Provider__16bc0q = core.Provider{
		Package:     Package__16bc0q,
		Instantiate: makeDeps__16bc0q,
	}

	Initializers__16bc0q = []*core.Initializer{
		{
			Package: Package__16bc0q,
			Do: func(ctx context.Context, di core.Dependencies) error {
				return di.Instantiate(ctx, Provider__16bc0q, func(ctx context.Context, v interface{}) error {
					return Prepare(ctx, v.(ExtensionDeps))
				})
			},
		},
	}
)
View Source
var Log = core.ZLog

Functions

func Background added in v0.0.244

func Background() context.Context

func ParsePeerAddress added in v0.0.153

func ParsePeerAddress(p *peer.Peer, md metadata.MD) (string, string)

func Prepare

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

func SerializeMessage added in v0.0.294

func SerializeMessage(msg interface{}) string

Types

type ExtensionDeps

type ExtensionDeps struct {
	Interceptors interceptors.Registration
	Middleware   middleware.Middleware
}

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