slack

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGreenButton = "Approve"
	DefaultRedButton   = "Deny"
)

Variables

This section is empty.

Functions

func Register

func Register(l zerolog.Logger, cmd *cli.Command, w worker.Worker)

Register exposes Temporal activities and workflows via the Timpani worker.

Types

type API

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

func (*API) TimpaniPostApprovalWorkflow

func (a *API) TimpaniPostApprovalWorkflow(ctx workflow.Context, req slack.TimpaniPostApprovalRequest) (*slack.TimpaniPostApprovalResponse, error)

TimpaniPostApprovalWorkflow is a convenience wrapper over [ChatPostMessageActivity]. It sends an interactive message to a user/group/channel with a short header, a markdown message, and 2 buttons. It then waits for (and returns) the user selection.

For message formatting tips, see https://docs.slack.dev/messaging/formatting-message-text.

Jump to

Keyboard shortcuts

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