transformations

package
v0.1.4-0...-f970457 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransformationFromConfig

func NewTransformationFromConfig(cfg *config.WebhookTransformationConfig) (webhookd.WebhookTransformation, error)

Types

type ChickenTransformation

type ChickenTransformation struct {
	webhookd.WebhookTransformation
	// contains filtered or unexported fields
}

func NewChickenTransformation

func NewChickenTransformation(lang string, clucking bool) (*ChickenTransformation, error)

func (*ChickenTransformation) Transform

func (tr *ChickenTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type GitHubCommitsTransformation

type GitHubCommitsTransformation struct {
	webhookd.WebhookTransformation
	ExcludeAdditions     bool
	ExcludeModifications bool
	ExcludeDeletions     bool
}

func NewGitHubCommitsTransformation

func NewGitHubCommitsTransformation(exclude_additions bool, exclude_modifications bool, exclude_deletions bool) (*GitHubCommitsTransformation, error)

func (*GitHubCommitsTransformation) Transform

func (p *GitHubCommitsTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type GitHubRepoTransformation

type GitHubRepoTransformation struct {
	webhookd.WebhookTransformation
	ExcludeAdditions     bool
	ExcludeModifications bool
	ExcludeDeletions     bool
}

func NewGitHubRepoTransformation

func NewGitHubRepoTransformation(exclude_additions bool, exclude_modifications bool, exclude_deletions bool) (*GitHubRepoTransformation, error)

func (*GitHubRepoTransformation) Transform

func (p *GitHubRepoTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type NullTransformation

type NullTransformation struct {
	webhookd.WebhookTransformation
}

func NewNullTransformation

func NewNullTransformation() (*NullTransformation, error)

func (*NullTransformation) Transform

func (p *NullTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type SSEDataTransformation

type SSEDataTransformation struct {
	webhookd.WebhookTransformation
}

func NewSSEDataTransformation

func NewSSEDataTransformation() (*SSEDataTransformation, error)

func (*SSEDataTransformation) Transform

func (p *SSEDataTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type SlackTextTransformation

type SlackTextTransformation struct {
	webhookd.WebhookTransformation
	// contains filtered or unexported fields
}

func NewSlackTextTransformation

func NewSlackTextTransformation() (*SlackTextTransformation, error)

func (*SlackTextTransformation) Transform

func (p *SlackTextTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

type WechatGroupBotTextMsg

type WechatGroupBotTextMsg struct {
	Msgtype string `json:"msgtype"`
	Text    struct {
		Content             string   `json:"content"`
		MentionedList       []string `json:"mentioned_list"`
		MentionedMobileList []string `json:"mentioned_mobile_list"`
	} `json:"text"`
}

type WechatWorkTextTransformation

type WechatWorkTextTransformation struct {
	webhookd.WebhookTransformation
	// contains filtered or unexported fields
}

func NewWechatWorkTextTransformation

func NewWechatWorkTextTransformation() (*WechatWorkTextTransformation, error)

func (*WechatWorkTextTransformation) Transform

func (p *WechatWorkTextTransformation) Transform(body []byte) ([]byte, *webhookd.WebhookError)

Jump to

Keyboard shortcuts

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