Documentation
¶
Index ¶
- func Lifecycle(startCtx, lifecycleCtx context.Context, p fraud.ProofType, ...) error
- func Module(tp node.Type) fx.Option
- func Service(lc fx.Lifecycle, sub *pubsub.PubSub, host host.Host, hstore header.Store, ...) (fraud.Service, error)
- func ServiceWithSyncer(lc fx.Lifecycle, sub *pubsub.PubSub, host host.Host, hstore header.Store, ...) (fraud.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lifecycle ¶
func Lifecycle( startCtx, lifecycleCtx context.Context, p fraud.ProofType, fservice fraud.Service, start, stop func(context.Context) error, ) error
Lifecycle controls the lifecycle of service depending on fraud proofs. It starts the service only if no fraud-proof exists and stops the service automatically if a proof arrives after the service was started.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.