Documentation ¶
Index ¶
- func CallTypes(ctx *broker.Context, services specs.ServiceList, objects specs.Schemas, ...) (err error)
- func CheckHeader(header specs.Header, flow specs.FlowInterface) error
- func CheckParameterMapTypes(ctx *broker.Context, parameters *specs.ParameterMap, objects specs.Schemas, ...) error
- func FlowTypes(ctx *broker.Context, services specs.ServiceList, objects specs.Schemas, ...) (err error)
- func Types(ctx *broker.Context, services specs.ServiceList, objects specs.Schemas, ...) (err error)
- type ErrHeaderTypeMismatch
- type ErrUndefinedMethod
- type ErrUndefinedObject
- type ErrUndefinedService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallTypes ¶
func CallTypes(ctx *broker.Context, services specs.ServiceList, objects specs.Schemas, node *specs.Node, call *specs.Call, flow specs.FlowInterface) (err error)
CallTypes compares the given call types against the configured schema types
func CheckHeader ¶
func CheckHeader(header specs.Header, flow specs.FlowInterface) error
CheckHeader compares the given header types
func CheckParameterMapTypes ¶
func CheckParameterMapTypes(ctx *broker.Context, parameters *specs.ParameterMap, objects specs.Schemas, flow specs.FlowInterface) error
CheckParameterMapTypes checks the given parameter map against the configured schema property
Types ¶
type ErrHeaderTypeMismatch ¶
ErrHeaderTypeMismatch occurs when expected header is not revieved
func (ErrHeaderTypeMismatch) Error ¶
func (e ErrHeaderTypeMismatch) Error() string
Error returns a description of the given error as a string
func (ErrHeaderTypeMismatch) Prettify ¶
func (e ErrHeaderTypeMismatch) Prettify() prettyerr.Error
Prettify returns the prettified version of the given error
type ErrUndefinedMethod ¶
ErrUndefinedMethod occurs when called method is not defined in flow
func (ErrUndefinedMethod) Error ¶
func (e ErrUndefinedMethod) Error() string
Error returns a description of the given error as a string
func (ErrUndefinedMethod) Prettify ¶
func (e ErrUndefinedMethod) Prettify() prettyerr.Error
Prettify returns the prettified version of the given error
type ErrUndefinedObject ¶
ErrUndefinedObject occurs when flow output object is not defined
func (ErrUndefinedObject) Error ¶
func (e ErrUndefinedObject) Error() string
Error returns a description of the given error as a string
func (ErrUndefinedObject) Prettify ¶
func (e ErrUndefinedObject) Prettify() prettyerr.Error
Prettify returns the prettified version of the given error
type ErrUndefinedService ¶
ErrUndefinedService occurs when called service is not defined in flow
func (ErrUndefinedService) Error ¶
func (e ErrUndefinedService) Error() string
Error returns a description of the given error as a string
func (ErrUndefinedService) Prettify ¶
func (e ErrUndefinedService) Prettify() prettyerr.Error
Prettify returns the prettified version of the given error