actions

package
v0.0.0-...-be0592b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: GPL-3.0 Imports: 2 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

Types

type Action

type Action struct {
	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