slack

package
v0.0.0-...-e32e23c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rule                 = "rule"
	Priority             = "priority"
	Source               = "source"
	Time                 = "time"
	Hostname             = "hostname"
	DefaultFooter string = "https://github.com/busyhardware/falco-gpt"
)

Variables

This section is empty.

Functions

func NewAttachment

func NewAttachment(falcopayload model.FalcoPayload) *slacksdk.Attachment

Types

type Client

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

Client is the client for Slack API.

func GetClient

func GetClient(token string) *Client

func NewClient

func NewClient(channel, token string) (*Client, error)

func (*Client) SendMessage

func (client *Client) SendMessage(text string, attachment *slacksdk.Attachment, thread string) (string, error)

Jump to

Keyboard shortcuts

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