Documentation ¶
Index ¶
- type Bootstrap
- type Builder
- func (s *Builder) Builders(builders ...miruken.Builder) *Builder
- func (s *Builder) Context() (*context.Context, error)
- func (s *Builder) ContextAsync() *promise.Promise[*context.Context]
- func (s *Builder) ExcludeSpecs(excludes ...miruken.Predicate[miruken.HandlerSpec]) *Builder
- func (s *Builder) Factory(...) *Builder
- func (s *Builder) Features(features ...Feature) *Builder
- func (s *Builder) Filters(providers ...miruken.FilterProvider) *Builder
- func (s *Builder) Handlers(handlers ...any) *Builder
- func (s *Builder) Observers(observers ...miruken.HandlerInfoObserver) *Builder
- func (s *Builder) Options(options ...any) *Builder
- func (s *Builder) Parsers(parsers ...miruken.BindingParser) *Builder
- func (s *Builder) Specs(specs ...any) *Builder
- func (s *Builder) Tag(tag any) bool
- func (s *Builder) With(values ...any) *Builder
- func (s *Builder) WithoutInference() *Builder
- type Feature
- type FeatureFunc
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶ added in v0.30.90
type Bootstrap interface { Startup( ctx context.Context, h miruken.Handler, ) *promise.Promise[struct{}] Shutdown( ctx context.Context, ) *promise.Promise[struct{}] }
Bootstrap is used to customize application startup and shutdown. All Bootstrap instances are resolved during New setup and Startup invoked concurrently. Shutdown is invoked in reverse order.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder orchestrates the setup process.
func (*Builder) ContextAsync ¶ added in v0.30.91
func (*Builder) ExcludeSpecs ¶
func (*Builder) Factory ¶
func (s *Builder) Factory( factory func([]miruken.BindingParser, []miruken.HandlerInfoObserver) miruken.HandlerInfoFactory, ) *Builder
func (*Builder) Filters ¶
func (s *Builder) Filters( providers ...miruken.FilterProvider, ) *Builder
func (*Builder) Observers ¶
func (s *Builder) Observers( observers ...miruken.HandlerInfoObserver, ) *Builder
func (*Builder) WithoutInference ¶
type Feature ¶
Feature encapsulates custom setup.
func FeatureSet ¶
FeatureSet combines one or more Feature's into a single logical Feature.
type FeatureFunc ¶
func (FeatureFunc) Install ¶
func (f FeatureFunc) Install(b *Builder) error
Click to show internal directories.
Click to hide internal directories.