package dependency
import "github.com/influxdata/flux/dependency"
Index ¶
- func OnFinish(ctx context.Context, c io.Closer)
- func OnFinishFunc(ctx context.Context, fn func() error)
- type Interface
- type List
- type Span
Functions ¶
func OnFinish ¶
func OnFinishFunc ¶
Types ¶
type Interface ¶
Interface is an interface that must be implemented by every injectable dependency. On Inject, the dependency is injected into the context and the resulting one is returned. Every dependency must provide a function to extract it from the context.
type List ¶
type List []Interface
func (List) Inject ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func Inject ¶
func (*Span) Finish ¶
func (s *Span) Finish()
Source Files ¶
- Version
- v0.196.1 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 day ago –
Tools for package owners.