Documentation
¶
Index ¶
- func NewTransformationFromConfig(cfg *config.WebhookTransformationConfig) (webhookd.WebhookTransformation, error)
- type ChickenTransformation
- type GitHubCommitsTransformation
- type GitHubRepoTransformation
- type NullTransformation
- type SSEDataTransformation
- type SlackTextTransformation
- type WechatGroupBotTextMsg
- type WechatWorkTextTransformation
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 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)
Click to show internal directories.
Click to hide internal directories.