precondition

package
v0.0.0-...-dcab76a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT, MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPrecondition

type IPrecondition interface {
	ExternalCondition(input interface{}) bool
}

type PreconditionAND

type PreconditionAND struct {
	// contains filtered or unexported fields
}

return true if both preconditions return true

func NewPreconditionAND

func NewPreconditionAND(First IPrecondition, Second IPrecondition) *PreconditionAND

func (*PreconditionAND) ExternalCondition

func (Cond *PreconditionAND) ExternalCondition(input interface{}) bool

type PreconditionFALSE

type PreconditionFALSE struct {
}

always false precondition

func NewPreconditionFALSE

func NewPreconditionFALSE() *PreconditionFALSE

func (*PreconditionFALSE) ExternalCondition

func (Cond *PreconditionFALSE) ExternalCondition(input interface{}) bool

type PreconditionOR

type PreconditionOR struct {
	// contains filtered or unexported fields
}

return true if one of the preconditions return true

func NewPreconditionOR

func NewPreconditionOR(First IPrecondition, Second IPrecondition) *PreconditionOR

func (*PreconditionOR) ExternalCondition

func (Cond *PreconditionOR) ExternalCondition(input interface{}) bool

type PreconditionTRUE

type PreconditionTRUE struct {
}

always true precondition

func NewPreconditionTRUE

func NewPreconditionTRUE() *PreconditionTRUE

func (*PreconditionTRUE) ExternalCondition

func (Cond *PreconditionTRUE) ExternalCondition(input interface{}) bool

Jump to

Keyboard shortcuts

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