Revision abd6343e41d6c3bcb520d96976e2fb14858590ba authored by galargh on 30 January 2023, 11:20:13 UTC, committed by galargh on 30 January 2023, 11:20:13 UTC
1 parent 6750377
fx.go
package plugin
import (
"github.com/ipfs/kubo/core"
"go.uber.org/fx"
)
// PluginFx can be used to customize the fx options passed to the go-ipfs app when it is initialized.
//
// This is invasive and depends on internal details such as the structure of the dependency graph,
// so breaking changes might occur between releases.
// So it's recommended to keep this as simple as possible, and stick to overriding interfaces
// with fx.Replace() or fx.Decorate().
//
// The returned options become the complete array of options passed to fx.
// Generally you'll want to append additional options to NodeInfo.FXOptions and return that.
type PluginFx interface {
Plugin
Options(core.FXNodeInfo) ([]fx.Option, error)
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...