mywebhook

package module
v0.0.0-...-4e12459 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyWebhook

type MyWebhook struct {
	// 目标服务器的 uri
	ServerURL string `json:"server_url"`
}

func (*MyWebhook) CaddyModule

func (s *MyWebhook) CaddyModule() caddy.ModuleInfo

插件的名称

func (*MyWebhook) ServeHTTP

func (s *MyWebhook) ServeHTTP(w http.ResponseWriter, r *http.Request) (err error)

实现 http.Handler 接口

func (*MyWebhook) UnmarshalCaddyfile

func (s *MyWebhook) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

初始化配置信息

Jump to

Keyboard shortcuts

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