messaging

package
v0.0.5 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) Send added in v0.0.5

func (t *Telegram) Send() ([]byte, error)

func (*Telegram) SendCustom added in v0.0.5

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

func (*Telegram) SendCustomFile added in v0.0.5

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

func (*Telegram) SendFile added in v0.0.5

func (t *Telegram) SendFile() ([]byte, error)

type TelegramOptions added in v0.0.2

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

Jump to

Keyboard shortcuts

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