webhook

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

README

webhook Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	AttrToken = "token"
	AttrPath  = "path"

	AttrHost    = "host"
	AttrSize    = "size"
	AttrBody    = "body"
	AttrUrl     = "url"
	AttrMethod  = "method"
	AttrHeaders = "headers"
)
View Source
const (
	// FuncEntityAction ...
	FuncEntityAction = "webhookAction"
)
View Source
const (
	// Name ...
	Name = "webhook"
)

Variables

Functions

func New

func New() plugins.Pluggable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewSettings

func NewSettings() m.Attributes

NewSettings ...

func NewStates

func NewStates() (states map[string]plugins.ActorState)

NewStates ...

Types

type Actor

type Actor struct {
	*supervisor.BaseActor
	AccessToken string
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service plugins.Service) *Actor

NewActor ...

func (*Actor) Destroy

func (e *Actor) Destroy()

func (*Actor) ServeHTTP

func (e *Actor) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Actor) Spawn

func (e *Actor) Spawn()

Spawn ...

Jump to

Keyboard shortcuts

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