command

package
v0.0.0-...-5193e6c Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelInfo

func GetChannelInfo(slack client.Slack, cache cache.Cache) flyte.Command

func SendMessage

func SendMessage(slack client.Slack) flyte.Command

func SendRichMessage

func SendRichMessage(sender RichMessageSender) flyte.Command

Types

type GetChannelInfoFail

type GetChannelInfoFail struct {
	GetChannelInfoInput
	Reason string `json:"reason"`
}

type GetChannelInfoInput

type GetChannelInfoInput struct {
	ChannelName string `json:"channelName"`
}

type GetChannelInfoSuccess

type GetChannelInfoSuccess struct {
	GetChannelInfoInput
	Conversation *types.Conversation `json:"conversation,omitempty"`
}

type RichMessageSender

type RichMessageSender interface {
	SendRichMessage(rm client.RichMessage) (respChannel string, respTimestamp string, err error)
}

type SendMessageErrorOutput

type SendMessageErrorOutput struct {
	SendMessageOutput
	Error string `json:"error"`
}

type SendMessageInput

type SendMessageInput struct {
	Message         string `json:"message"`
	ThreadTimestamp string `json:"threadTimestamp"`
	ChannelId       string `json:"channelId"`
}

type SendMessageOutput

type SendMessageOutput struct {
	SendMessageInput
}

type SendRichMessageErrorOutput

type SendRichMessageErrorOutput struct {
	InputMessage client.RichMessage `json:"inputMessage"`
	Error        string             `json:"error"`
}

Jump to

Keyboard shortcuts

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