composite

package
v0.0.0-...-8e9ce19 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugOpt cmp.Option // to debug. If not enought opts are found, it must be implemented formally.
)

Functions

func Diff

func Diff(exp, act map[interface{}]interface{}) error

func IgnoreTypes

func IgnoreTypes(i ...interface{})

func IgnoreUnexportedTypes

func IgnoreUnexportedTypes(i ...interface{})

func RegardAsIdenticalTypesUnlessEitherIsZero

func RegardAsIdenticalTypesUnlessEitherIsZero(x interface{}, y interface{})

func Server

func Server(comp Interface) *http.Server

func Test

func Test(untyped Interface) error

Types

type Element

type Element = map[interface{}]interface{}

type Interface

type Interface interface {
	GetElement() Element
	GetCurrentStep() string
	SimulateAt(name string) error
	ReproduceAt(name string) error
}

func Composite

func Composite(ss ...Mappings) Interface

func Composite2

func Composite2(ss ...Mappings2) Interface

type Mappings

type Mappings interface {
	Name() string
	SimulateUp(Element) (Element, error)
	SimulateDown(Element) (Element, error)
	Up(Element) (Element, error)
	Down(Element) (Element, error)
}

type Mappings2

type Mappings2 interface {
	Name() string
	SimulateUp(Element) (Element, error)
	Up(Element) (Element, error)
}

Jump to

Keyboard shortcuts

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