messaging

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

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

func NewSlack

func NewSlack(options SlackOptions) *Slack

func (*Slack) SendMessage

func (s *Slack) SendMessage(URL, message, title, content string) (error, []byte)

func (*Slack) SendPhoto

func (s *Slack) SendPhoto(URL, message, fileName, title string, photo []byte) (error, []byte)

type SlackOptions

type SlackOptions struct {
	URL     string
	Timeout int
}

type Telegram added in v0.0.2

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

func NewTelegram added in v0.0.2

func NewTelegram(options TelegramOptions) *Telegram

func (*Telegram) SendMessage added in v0.0.2

func (t *Telegram) SendMessage(URL, message, title, content string) (error, []byte)

func (*Telegram) SendPhoto added in v0.0.2

func (t *Telegram) SendPhoto(URL, message, fileName, title string, photo []byte) (error, []byte)

type TelegramOptions added in v0.0.2

type TelegramOptions struct {
	URL                 string
	Timeout             int
	DisableNotification string
}

Jump to

Keyboard shortcuts

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