slackhandler

package
v0.0.0-...-877e7b3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Schemas []Schema `yaml:"schemas"`
}

type Schema

type Schema struct {
	Name string `yaml:"name"`
	Path string `yaml:"path"`
}

type SlackAPI

type SlackAPI interface {
	GetConversationInfo(params *slack.GetConversationInfoInput) (*slack.Channel, error)
	AuthTest() (*slack.AuthTestResponse, error)
	GetConversationReplies(params *slack.GetConversationRepliesParameters) ([]slack.Message, bool, string, error)
	PostMessage(channelID string, options ...slack.MsgOption) (string, string, error)
}

type SlackHandler

type SlackHandler struct {
	Api SlackAPI
}

func (*SlackHandler) HandleCallBackEvent

func (h *SlackHandler) HandleCallBackEvent(event slackevents.EventsAPIEvent, path string) error

func (*SlackHandler) HandleInteractionCallback

func (h *SlackHandler) HandleInteractionCallback(interaction slack.InteractionCallback) error

Jump to

Keyboard shortcuts

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