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 authored and sywhang committed Feb 8, 2022
1 parent 42eeff7 commit 3f4510d
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 @@ -28,6 +28,16 @@ import (
"go.uber.org/fx/internal/fxreflect"
)

// 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.
func Module(name string, opts ...Option) Option {
mo := moduleOption{
Expand Down

0 comments on commit 3f4510d

Please sign in to comment.