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

webhook

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDingTalkWebhook

func NewDingTalkWebhook(l logger.Logger) bindings.InputOutputBinding

Types

type DingTalkWebhook

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

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(ctx context.Context, 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