messaging

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 10 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) Send added in v0.0.4

func (s *Slack) Send() ([]byte, error)

func (*Slack) SendCustom added in v0.0.4

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

func (*Slack) SendCustomFile added in v0.0.4

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

func (*Slack) SendFile added in v0.0.4

func (s *Slack) SendFile() ([]byte, error)

type SlackOptions

type SlackOptions struct {
	URL      string
	Timeout  int
	Insecure bool
	Message  string
	Title    string
	FileName string
	Content  string // content or path to file
	Output   string // path to output if empty to stdout
}

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