Help us shape the future of Go! Take the 2026 Go Developer Survey

webhook

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalkWebhook

type DingTalkWebhook struct {
	// contains filtered or unexported fields
}

func NewDingTalkWebhook

func NewDingTalkWebhook(l logger.Logger) *DingTalkWebhook

func (*DingTalkWebhook) Init

func (t *DingTalkWebhook) Init(metadata bindings.Metadata) error

Init performs metadata parsing.

func (*DingTalkWebhook) Invoke

func (*DingTalkWebhook) Operations

func (t *DingTalkWebhook) Operations() []bindings.OperationKind

Operations returns list of operations supported by dingtalk webhook binding.

func (*DingTalkWebhook) Read

func (t *DingTalkWebhook) Read(handler bindings.Handler) error

Read triggers the outgoing webhook, not yet production ready.

type Settings

type Settings struct {
	ID     string `mapstructure:"id"`
	URL    string `mapstructure:"url"`
	Secret string `mapstructure:"secret"`
}

func (*Settings) Decode

func (s *Settings) Decode(in interface{}) error

func (*Settings) Validate

func (s *Settings) Validate() error

Jump to

Keyboard shortcuts

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