Documentation
¶
Index ¶
- func AfterStart() error
- func AfterStop() error
- func BeforeStart() error
- func BeforeStop() error
- func Dix(data ...interface{}) error
- func Go(data ...interface{})
- func Graph() string
- func Init(opts ...Option) error
- func New(opts ...Option) *dix
- func Start() error
- func Stop() error
- func WithAfterStart(fn func(ctx *AfterStartCtx)) error
- func WithAfterStop(fn func(ctx *AfterStopCtx)) error
- func WithBeforeStart(fn func(ctx *BeforeStartCtx)) error
- func WithBeforeStop(fn func(ctx *BeforeStopCtx)) error
- func WithStart(fn func(ctx *StartCtx)) error
- func WithStop(fn func(ctx *StopCtx)) error
- type AfterStartCtx
- type AfterStopCtx
- type BeforeStartCtx
- type BeforeStopCtx
- type Model
- type Option
- type Options
- type StartCtx
- type StopCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterStart ¶ added in v0.0.15
func AfterStart() error
func BeforeStart ¶ added in v0.0.15
func BeforeStart() error
func BeforeStop ¶ added in v0.0.15
func BeforeStop() error
func WithAfterStart ¶ added in v0.0.15
func WithAfterStart(fn func(ctx *AfterStartCtx)) error
func WithAfterStop ¶ added in v0.0.15
func WithAfterStop(fn func(ctx *AfterStopCtx)) error
func WithBeforeStart ¶ added in v0.0.15
func WithBeforeStart(fn func(ctx *BeforeStartCtx)) error
func WithBeforeStop ¶ added in v0.0.15
func WithBeforeStop(fn func(ctx *BeforeStopCtx)) error
Types ¶
type AfterStartCtx ¶ added in v0.1.1
type AfterStartCtx struct{ Model }
type AfterStopCtx ¶ added in v0.1.1
type AfterStopCtx struct{ Model }
type BeforeStartCtx ¶ added in v0.1.1
type BeforeStartCtx struct{ Model }
type BeforeStopCtx ¶ added in v0.1.1
type BeforeStopCtx struct{ Model }
type Option ¶
type Option func(c *Options)
func WithAllowNil ¶
func WithInvoker ¶
func WithInvoker(invoker invokerFn) Option
func WithStrict ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.