slack

package
v0.0.0-...-b352e1d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackIntegration

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

func NewSlackIntegration

func NewSlackIntegration(webhookURL string) *SlackIntegration

func (*SlackIntegration) PostNotification

func (s *SlackIntegration) PostNotification(stand stand.Stand) error

type SlackInteraction

type SlackInteraction struct {
	User struct {
		ID string `json:"id"`
	} `json:"user"`
	ResponseURL string `json:"response_url"`
	Actions     []struct {
		ActionID string `json:"action_id"`
		Value    string `json:"value"`
	} `json:"actions"`
}

Jump to

Keyboard shortcuts

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