action

package
v0.0.0-...-c53c3a1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Act(string, *fasthttp.RequestCtx) error
	SetParams(ActionParams) error
	GetResponseState() types.ResponseState
}

func Create

func Create(name string, params ActionParams) (Action, error)

func FromJSON

func FromJSON(j ActionJSON) (Action, error)

type ActionJSON

type ActionJSON struct {
	Name   string       `json:"name"`
	Params ActionParams `json:"params"`
}

type ActionParams

type ActionParams map[string]interface{}

Jump to

Keyboard shortcuts

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