Documentation
¶
Index ¶
- Constants
- func From(typ interface{}) interface{}
- func LifecycleCtx(mctx MetricsCtx, lc fx.Lifecycle) context.Context
- type MetricsCtx
- type NetworkName
- type Option
- func ApplyIf(check func(s *Settings) bool, opts ...Option) Option
- func CommonOpt(alg *common.APIAlg) Option
- func Error(err error) Option
- func FullAPIOpt(out *api.IFullAPI) Option
- func If(b bool, opts ...Option) Option
- func Options(opts ...Option) Option
- func Override(typ, constructor interface{}) Option
- func Unset(typ interface{}) Option
- func WalletOpt(repo filemgr.Repo, walletPwd string) Option
- type Settings
- type StopFunc
Constants ¶
View Source
const ( PstoreAddSelfKeysKey = invoke(iota) ExtractApiKey SetNet )
nolint:golint
Variables ¶
This section is empty.
Functions ¶
func LifecycleCtx ¶
func LifecycleCtx(mctx MetricsCtx, lc fx.Lifecycle) context.Context
LifecycleCtx creates a context which will be cancelled when lifecycle stops
This is a hack which we need because most of our services use contexts in a wrong way
Types ¶
type Option ¶
Option is a functional option which can be used with the New function to change how the node is constructed
Options are applied in sequence
func FullAPIOpt ¶
Click to show internal directories.
Click to hide internal directories.