vendors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graylog

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

func NewGraylog

func NewGraylog(options GraylogOptions) *Graylog

func (*Graylog) Logs

func (g *Graylog) Logs() ([]byte, error)

type GraylogOptions

type GraylogOptions struct {
	URL         string
	Timeout     int
	Insecure    bool
	User        string
	Password    string
	Streams     string
	Query       string
	RangeType   string
	Sort        string
	Limit       int
	From        string
	To          string
	Range       string
	Output      string
	OutputQuery string
}

type Jira added in v0.1.0

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

func NewJira added in v0.1.0

func NewJira(options JiraOptions) *Jira

func (*Jira) CreateTask added in v0.1.0

func (j *Jira) CreateTask() ([]byte, error)

type JiraOptions added in v0.1.0

type JiraOptions struct {
	URL         string
	Timeout     int
	Insecure    bool
	User        string
	Password    string
	Output      string
	OutputQuery string
}

type Slack

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

func NewSlack

func NewSlack(options SlackOptions) *Slack

func (*Slack) Send

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

func (*Slack) SendCustom

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

func (*Slack) SendCustomFile

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

func (*Slack) SendFile

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
	OutputQuery string
}

type Telegram

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

func NewTelegram

func NewTelegram(options TelegramOptions) *Telegram

func (*Telegram) Send

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

func (*Telegram) SendCustom

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

func (*Telegram) SendCustomFile

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

func (*Telegram) SendFile

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

type TelegramOptions

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

Jump to

Keyboard shortcuts

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