compare

package
v2.1.1-0...-182a82a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func FlowTypes

func FlowTypes(ctx *broker.Context, services specs.ServiceList, objects specs.Schemas, flow specs.FlowInterface) (err error)

FlowTypes compares the flow types against the configured schema types

func Types

func Types(ctx *broker.Context, services specs.ServiceList, objects specs.Schemas, flows specs.FlowListInterface) (err error)

Types compares the types defined insde the schema definitions against the configured specification

Types

type ErrHeaderTypeMismatch

type ErrHeaderTypeMismatch struct {
	Type     interface{}
	Expected interface{}
	Path     string
	Flow     string
}

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

type ErrUndefinedMethod struct {
	Flow   string
	Method string
}

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

type ErrUndefinedObject struct {
	Flow   string
	Schema string
}

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

type ErrUndefinedService struct {
	Flow    string
	Service string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL