mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
309 B
Go
18 lines
309 B
Go
package injection
|
|
|
|
import "go.uber.org/fx"
|
|
|
|
var options []fx.Option
|
|
|
|
func Provide(constructors ...interface{}) {
|
|
options = append(options, fx.Provide(constructors...))
|
|
}
|
|
|
|
func Invoke(funcs ...interface{}) {
|
|
options = append(options, fx.Invoke(funcs...))
|
|
}
|
|
|
|
func GetOptions() []fx.Option {
|
|
return options
|
|
}
|