messenger

package
v0.0.0-...-b94e071 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HangoutsMessenger

type HangoutsMessenger struct {
	Client *http.Client
}

HangoutsMessenger implements Messenger for Hangouts chat

func (*HangoutsMessenger) Send

func (hm *HangoutsMessenger) Send(space string, message string) error

Send a message to the given space

func (*HangoutsMessenger) Update

func (hm *HangoutsMessenger) Update(space, messageName, newMessage string) error

Update a message with a new message

type Messenger

type Messenger interface {
	Send(space string, message string) error
	Update(space, messageName, newMessage string) error
	// contains filtered or unexported methods
}

Messenger interface to send or update messages to a user/room

func NewMessenger

func NewMessenger() Messenger

NewMessenger creates a new instance of Messenger

Jump to

Keyboard shortcuts

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