actions

package
v1.20.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 1 Imported by: 15

Documentation

Index

Constants

View Source
const (
	APIVersionV1 = "v1"

	PathV1 = prefix + APIVersionV1
)

Variables

This section is empty.

Functions

func GetApiV1Action

func GetApiV1Action() []*httpserver.Action

Get V1 actions

func RegisterDaemonFunc

func RegisterDaemonFunc(f func())

called by actions for registering some daemon functions and these functions will be called after flag-init and server-start

func RegisterV1Action

func RegisterV1Action(action Action)

Register a handler into v1 actions means all the URL of these handlers are start with PathV1

func StartActionDaemon

func StartActionDaemon()

one by one start daemon goroutine

Types

type Action

type Action httpserver.Action

Jump to

Keyboard shortcuts

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