webhook

package
v1.11.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 19 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) Close added in v1.11.0

func (t *DingTalkWebhook) Close() error

func (*DingTalkWebhook) GetComponentMetadata added in v1.11.0

func (t *DingTalkWebhook) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*DingTalkWebhook) Init

func (t *DingTalkWebhook) Init(_ context.Context, 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