triggering

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BodyStrategy     string = "body"
	HttpCodeStrategy string = "http_code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Executor(resp *http.Response) bool
	BodyStrategy(resp *http.Response) bool
	HttpCodeStrategy(resp *http.Response) bool
}

type Triggering

type Triggering struct {
	Key     string
	Operate string
	Value   *structpb.Value
}

func New

func New(c *pb.Condition) *Triggering

func (*Triggering) BodyStrategy

func (condition *Triggering) BodyStrategy(resp *http.Response) bool

func (*Triggering) Executor

func (condition *Triggering) Executor(resp *http.Response) bool

func (*Triggering) HttpCodeStrategy

func (condition *Triggering) HttpCodeStrategy(resp *http.Response) bool

Jump to

Keyboard shortcuts

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