slack

package
v0.0.0-...-6a2b81c Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ProviderID ...
	ProviderID = "slack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentItemModel

type AttachmentItemModel struct {
	Fallback string `json:"fallback"`
	Text     string `json:"text"`
	Color    string `json:"color,omitempty"`
}

AttachmentItemModel ...

type HookProvider

type HookProvider struct{}

HookProvider ...

func (HookProvider) TransformErrorMessageResponse

func (hp HookProvider) TransformErrorMessageResponse(errMsg string) hookCommon.TransformResponseModel

TransformErrorMessageResponse ...

func (HookProvider) TransformRequest

func (hp HookProvider) TransformRequest(r *http.Request) hookCommon.TransformResultModel

TransformRequest ...

func (HookProvider) TransformResponse

TransformResponse ...

func (HookProvider) TransformSuccessMessageResponse

func (hp HookProvider) TransformSuccessMessageResponse(msg string) hookCommon.TransformResponseModel

TransformSuccessMessageResponse ...

type RespModel

type RespModel struct {
	Text         string                `json:"text"`
	ResponseType string                `json:"response_type,omitempty"`
	Username     string                `json:"username,omitempty"`
	Attachments  []AttachmentItemModel `json:"attachments,omitempty"`
}

RespModel ...

Jump to

Keyboard shortcuts

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