actions

package
v0.0.0-...-18fcf55 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ac GenericAction, input interface{}) error

Types

type GenericAction

type GenericAction interface {
	Name() string
	Description() string
	Type() string
	Init() error
	Handler() func(interface{}) error
}

func New

func New(path string) (GenericAction, error)

type RestAction

type RestAction interface {
	Name() string
	Description() string
	Init() error
	Handler() func(input RestInput) error
}

type RestInput

type RestInput struct {
	Req *http.Request
	Res *http.Response
}

Jump to

Keyboard shortcuts

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