webhook

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SchemeHTTP = "webhook+http"
View Source
const SchemeHTTPS = "webhook" //HTTPS

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookClient

type WebhookClient struct {
	Url         string
	Method      string
	Header      http.Header
	ContentType string

	AdditionalHeaders map[string]string
	// contains filtered or unexported fields
}

func (*WebhookClient) Export

func (w *WebhookClient) Export(data []byte) error

func (*WebhookClient) SetDestName

func (w *WebhookClient) SetDestName(name string) error

func (*WebhookClient) SetUploadUrl

func (w *WebhookClient) SetUploadUrl(_url string) error

type WebhookHTTPClient

type WebhookHTTPClient struct {
	WebhookClient
}

func (*WebhookHTTPClient) Scheme

func (w *WebhookHTTPClient) Scheme() string

func (*WebhookHTTPClient) UsageInfo

func (w *WebhookHTTPClient) UsageInfo() string

type WebhookHTTPSClient

type WebhookHTTPSClient struct {
	WebhookClient
}

func (*WebhookHTTPSClient) Scheme

func (w *WebhookHTTPSClient) Scheme() string

func (*WebhookHTTPSClient) UsageInfo

func (w *WebhookHTTPSClient) UsageInfo() string

Jump to

Keyboard shortcuts

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