webhook

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackWebhook

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

SlackWebhook represents Slack webhook

func NewSlackWebhook

func NewSlackWebhook(slackOAuthAccessToken string, slackVerificationToken string, gitLabURLParserParams *gitlab.URLParserParams) *SlackWebhook

NewSlackWebhook create new SlackWebhook instance

func (*SlackWebhook) Request

func (s *SlackWebhook) Request(body string, truncateLines int) (string, error)

Request handles Slack event

Jump to

Keyboard shortcuts

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