common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WithContext

type WithContext struct {
	// contains filtered or unexported fields
}

WithContext is used to attach a context.Context to a long-lived entyt. This entity will then use this Context for all operations (serving requests, etc.).

func (*WithContext) Context

func (wc *WithContext) Context() context.Context

Context returns the attached context.Context, or the Background Context if no Context has been attached yet.

func (*WithContext) InitContext

func (wc *WithContext) InitContext(ctx context.Context)

InitContext initializes the context.Context. The provided Context must be non-nil, else it will panic.

Jump to

Keyboard shortcuts

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