slackbot

package
v0.0.0-...-287d054 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// Sink is the consumer of cloud events from the bot.
	Sink string `envconfig:"SINK_URI" required:"true"`
	// Port is server port to be listened.
	Port int `envconfig:"PORT" default:"8080"`

	Admin   string
	Bot     string
	Channel string
	Err     chan error
	// contains filtered or unexported fields
}

func NewBot

func NewBot(ctx context.Context) (*Bot, error)

func (*Bot) Start

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

Start is a blocking call.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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