hipchat

package
v0.0.0-...-c5ab296 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApprovalRequiredTempl = `` /* 163-byte string literal not displayed */
View Source
var ChangeRejectedTempl = `Change rejected
  Change was rejected.
    Status: %s
    Votes: %d/%d
    Delta: %s
    Identifier: %s`
View Source
var UpdateApprovedTempl = `Update approved!
  All approvals received, thanks for voting!
    Votes: %d/%d
    Delta: %s
    Identifier: %s`
View Source
var VoteReceivedTempl = `Vote received
  Waiting for remaining votes!
    Votes: %d/%d
    Delta: %s
    Identifier: %s`

Functions

This section is empty.

Types

type Bot

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

Bot - main hipchat bot container

func (*Bot) Configure

func (b *Bot) Configure(approvalsRespCh chan *bot.ApprovalResponse, botMessagesChannel chan *bot.BotMessage) bool

func (*Bot) ReplyToApproval

func (b *Bot) ReplyToApproval(approval *types.Approval) error

func (*Bot) RequestApproval

func (b *Bot) RequestApproval(req *types.Approval) error

func (*Bot) Respond

func (b *Bot) Respond(response string, channel string)

func (*Bot) Start

func (b *Bot) Start(ctx context.Context) error

Start the bot

type HipchatClient

type HipchatClient struct {
	XmppImplementer
}

type XmppImplementer

type XmppImplementer interface {
	Say(roomID, name, body string)
	Status(s string)
	Join(roomID, resource string)
	KeepAlive()
	Messages() <-chan *hipchat.Message
}

Jump to

Keyboard shortcuts

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