actions

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIAction

func GetAPIAction() []*httpserver.Action

GetAPIAction fetch api actions

func RegisterNewAction

func RegisterNewAction(action Action)

RegisterNewAction registe action to actions

func RegisterNewAutoAction

func RegisterNewAutoAction(a AutoAction)

RegisterNewAutoAction registe action to actions

Types

type Action

type Action struct {
	//httpserver.Action
	Verb          string               // Verb identifying the action ("GET", "POST", "WATCH", PROXY", etc).
	Path          string               // The path of the action
	Params        []*restful.Parameter // List of parameters associated with the action.
	Handler       restful.RouteFunction
	FilterHandler []restful.FilterFunction
	Version       string //api 版本号,为空表示没有版本
}

Action restful action struct

type AutoAction

type AutoAction struct {
	Name string
	Run  func(config map[string]string) error
}

AutoAction execution Action of start process, action struct

func GetAutoAction

func GetAutoAction() []AutoAction

GetAutoAction fetch api actions

Jump to

Keyboard shortcuts

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