writer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

package writer implements the io.Writer interface for posting messages to Slack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlackWriter

func NewSlackWriter(webhook_uri string, channel string) (io.Writer, error)

NewSlackWriter returns a new io.Writer instance for posting messages to the Slack channel 'channel'.

Types

type SlackWriter

type SlackWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

type SlackWriter implements the io.Writer interface for posting messages to Slack.

func (*SlackWriter) Write

func (wr *SlackWriter) Write(b []byte) (int, error)

Write will post 'b' to the Slack channel specified when instantiating 'wr'.

Jump to

Keyboard shortcuts

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