slack

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 8 Imported by: 0

README

Slack Webhook

Token Format: T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Feature

  • NewSlack(token string)
  • UseToken(token string)
  • SendText(text string)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack added in v0.2.0

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

Slack represents a feishu custom robot that can send messages.

func NewSlack added in v0.2.0

func NewSlack(token string) *Slack

NewSlack init

func (*Slack) SendText added in v0.2.0

func (r *Slack) SendText(text string) error

func (*Slack) SetDebug added in v0.2.0

func (r *Slack) SetDebug(debug bool) *Slack

func (*Slack) UseHost added in v0.2.0

func (r *Slack) UseHost(url string) notice.Noticer

Deprecated

func (*Slack) UseSecret added in v0.2.0

func (r *Slack) UseSecret(secret string) notice.Noticer

Deprecated

func (*Slack) UseToken added in v0.2.0

func (r *Slack) UseToken(token string) notice.Noticer

Jump to

Keyboard shortcuts

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