Skip to content

Commit

Permalink
Revert "Remove unused container type"
Browse files Browse the repository at this point in the history
This reverts commit 8aa68c0.
  • Loading branch information
abhinav committed Feb 8, 2022
1 parent 11b68fb commit 7f1a2c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions module.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ import (
"go.uber.org/dig"
)

// A container represents a set of constructors to provide
// dependencies, and a set of functions to invoke once all the
// dependencies have been initialized.
//
// This definition corresponds to the dig.Container and dig.Scope.
type container interface {
Invoke(interface{}, ...dig.InvokeOption) error
Provide(interface{}, ...dig.ProvideOption) error
}

// Module is a named group of zero or more fx.Options. A Module is a
// dependency graph with limited scope, and can be used for scoping
// graph modifications (not implemented yet).
Expand Down

0 comments on commit 7f1a2c7

Please sign in to comment.