api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE = "api"

Variables

This section is empty.

Functions

This section is empty.

Types

type HookApi

type HookApi struct {
	hooks.IHook
	// contains filtered or unexported fields
}

func NewHook

func NewHook() *HookApi

func (*HookApi) Execute

func (h *HookApi) Execute() error

func (*HookApi) WithSpec

func (h *HookApi) WithSpec(spec interface{}, params map[string]interface{}) (hooks.IHook, error)

type Spec

type Spec struct {
	Method string `json:"method"`
	Target string `json:"target" template:""`
	Status int    `json:"status"`
}

Jump to

Keyboard shortcuts

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