lifecyclectx

package
v0.0.0-...-08b9edc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FxCtx

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

FxCtx provide the lifecycle from Fx App Lifecycle.

func (FxCtx) GetLifecycleCtx

func (p FxCtx) GetLifecycleCtx() context.Context

type Provider

type Provider interface {
	GetLifecycleCtx() context.Context
}

Provider is an easy way to access a lifecycle context on-demand.

func NewFxCtx

func NewFxCtx(lc fx.Lifecycle) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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