webhook

package
v0.0.0-...-5f625e7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebHook

type WebHook struct {
	Timestamp  string `json:"timestamp"`
	Sig        string `json:"sig"`
	Key        string `json:"key"`
	BizContent string `json:"bizContent"`
}

type WebHookConfig

type WebHookConfig struct {
	SafeheronWebHookRsaPublicKey string `comment:"safeheronWebHookRsaPublicKey"`
	WebHookRsaPrivateKey         string `comment:"webHookRsaPrivateKey"`
}

type WebHookResponse

type WebHookResponse struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type WebhookConverter

type WebhookConverter struct {
	Config WebHookConfig
}

func (*WebhookConverter) Convert

func (c *WebhookConverter) Convert(d WebHook) (string, error)

Jump to

Keyboard shortcuts

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