Documentation ¶
Index ¶
- func SetOptions(ctx *broker.Context, parent *Options, options ...Option) error
- type AfterFlowConstruction
- type AfterFlowConstructionHandler
- type BeforeConstructor
- type BeforeConstructorHandler
- type Middleware
- type Option
- func AfterFlowConstructor(wrapper AfterFlowConstructionHandler) Option
- func AfterManagerDo(wrapper flow.AfterManagerHandler) Option
- func AfterManagerRollback(wrapper flow.AfterManagerHandler) Option
- func AfterNodeDo(wrapper flow.AfterNodeHandler) Option
- func AfterNodeRollback(wrapper flow.AfterNodeHandler) Option
- func BeforeManagerDo(wrapper flow.BeforeManagerHandler) Option
- func BeforeManagerRollback(wrapper flow.BeforeManagerHandler) Option
- func BeforeNodeDo(wrapper flow.BeforeNodeHandler) Option
- func BeforeNodeRollback(wrapper flow.BeforeNodeHandler) Option
- func NewCollection(options ...Option) []Option
- func WithBeforeConstructor(wrapper BeforeConstructorHandler) Option
- func WithCaller(caller transport.NewCaller) Option
- func WithCodec(codec codec.Constructor) Option
- func WithFlows(definition providers.FlowsResolver) Option
- func WithFunctions(custom functions.Custom) Option
- func WithLogLevel(pattern string, value string) Option
- func WithMiddleware(middleware Middleware) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AfterFlowConstruction ¶
AfterFlowConstruction is called before the construction of a flow manager
type AfterFlowConstructionHandler ¶
type AfterFlowConstructionHandler func(AfterFlowConstruction) AfterFlowConstruction
AfterFlowConstructionHandler wraps the before flow construction function to allow middleware to be chained
type BeforeConstructor ¶
BeforeConstructor is called before the specifications is constructored
type BeforeConstructorHandler ¶
type BeforeConstructorHandler func(BeforeConstructor) BeforeConstructor
BeforeConstructorHandler wraps the before constructed function to allow middleware to be chained
type Middleware ¶
Middleware is called once the options have been initialised
func MiddlewareFunc ¶
func MiddlewareFunc(handle func(*broker.Context) ([]Option, error)) Middleware
MiddlewareFunc wraps the given handle inside a middleware implementation
type Option ¶
Option represents a constructor func which sets a given option
func AfterFlowConstructor ¶
func AfterFlowConstructor(wrapper AfterFlowConstructionHandler) Option
AfterFlowConstructor the passed function gets called before a flow manager gets constructed
func AfterManagerDo ¶
func AfterManagerDo(wrapper flow.AfterManagerHandler) Option
AfterManagerDo the passed function gets after a flow has been handled by the flow manager
func AfterManagerRollback ¶
func AfterManagerRollback(wrapper flow.AfterManagerHandler) Option
AfterManagerRollback the passed function gets after a flow rollback has been handled by the flow manager
func AfterNodeDo ¶
func AfterNodeDo(wrapper flow.AfterNodeHandler) Option
AfterNodeDo the passed function gets called after a node is executed
func AfterNodeRollback ¶
func AfterNodeRollback(wrapper flow.AfterNodeHandler) Option
AfterNodeRollback the passed function gets called after a node rollback is executed
func BeforeManagerDo ¶
func BeforeManagerDo(wrapper flow.BeforeManagerHandler) Option
BeforeManagerDo the passed function gets called before a request gets handled by a flow manager
func BeforeManagerRollback ¶
func BeforeManagerRollback(wrapper flow.BeforeManagerHandler) Option
BeforeManagerRollback the passed function gets called before a rollback request gets handled by a flow manager
func BeforeNodeDo ¶
func BeforeNodeDo(wrapper flow.BeforeNodeHandler) Option
BeforeNodeDo the passed function gets called before a node is executed
func BeforeNodeRollback ¶
func BeforeNodeRollback(wrapper flow.BeforeNodeHandler) Option
BeforeNodeRollback the passed function gets called before a node rollback is executed
func NewCollection ¶
NewCollection constructs a new options collection
func WithBeforeConstructor ¶
func WithBeforeConstructor(wrapper BeforeConstructorHandler) Option
WithBeforeConstructor the passed function gets called before new specifications are constructed
func WithCaller ¶
WithCaller appends the given caller to the collection of available callers
func WithCodec ¶
func WithCodec(codec codec.Constructor) Option
WithCodec appends the given codec to the collection of available codecs
func WithFlows ¶
func WithFlows(definition providers.FlowsResolver) Option
WithFlows appends the given flows resolver to the available flow resolvers
func WithFunctions ¶
WithFunctions defines the custom defined functions to be used
func WithLogLevel ¶
WithLogLevel sets the log level for the given module
func WithMiddleware ¶
func WithMiddleware(middleware Middleware) Option
WithMiddleware initialises the given middleware and defines all options
type Options ¶
type Options struct { Codec codec.Constructors Callers transport.Callers FlowResolvers providers.FlowsResolvers Middleware []Middleware BeforeConstructor BeforeConstructor BeforeManagerDo flow.BeforeManager BeforeManagerRollback flow.BeforeManager AfterManagerDo flow.AfterManager AfterManagerRollback flow.AfterManager BeforeNodeDo flow.BeforeNode BeforeNodeRollback flow.BeforeNode AfterNodeDo flow.AfterNode AfterNodeRollback flow.AfterNode AfterFlowConstruction AfterFlowConstruction Functions functions.Custom }
Options represents all the available options
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
examples
|
|
pkg
|
|
codec/metadata
Package metadata allows for the definition of metadata such as headers
|
Package metadata allows for the definition of metadata such as headers |
tests
|
|