slacknotifier

package
v0.0.0-...-cb4139d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

func New

func New(client *slack.Client, channel string, options ...NotifyOption) *Notifier

func (*Notifier) Notify

func (n *Notifier) Notify(obj interface{}, args ...interface{})

func (*Notifier) NotifyTo

func (n *Notifier) NotifyTo(channel string, obj interface{}, args ...interface{})

func (*Notifier) SendPhoto

func (n *Notifier) SendPhoto(buffer *bytes.Buffer)

func (*Notifier) SendPhotoTo

func (n *Notifier) SendPhotoTo(channel string, buffer *bytes.Buffer)

type NotifyOption

type NotifyOption func(notifier *Notifier)

Jump to

Keyboard shortcuts

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