Documentation ¶
Overview ¶
Package rocketchatbee is a Bee that can connect to Rocketchat.
Package rocketchatbee is a Bee that can connect to Rocketchat.
Index ¶
- type Client
- type ErrorResponse
- type Message
- type MessageContainer
- type RocketchatBee
- type RocketchatBeeFactory
- func (factory *RocketchatBeeFactory) Actions() []bees.ActionDescriptor
- func (factory *RocketchatBeeFactory) Description() string
- func (factory *RocketchatBeeFactory) ID() string
- func (factory *RocketchatBeeFactory) Image() string
- func (factory *RocketchatBeeFactory) LogoColor() string
- func (factory *RocketchatBeeFactory) Name() string
- func (factory *RocketchatBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
- func (factory *RocketchatBeeFactory) Options() []bees.BeeOptionDescriptor
- type Room
- type RoomResponseContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetChannelID ¶
getChannelID returns the ID of a channel
func (*Client) SendMessage ¶
func (*Client) TestConnection ¶
type Message ¶
type Message struct { Text string `json:"msg"` ChannelID string `json:"rid"` Alias string `json:"alias,omitempty"` }
Message defines a chat message
type MessageContainer ¶
type MessageContainer struct {
Message Message `json:"message"`
}
MessageContainer is sent to Rocket.Chat to create a chat message
type RocketchatBee ¶
RocketchatBee is a Bee that can connect to Rocketchat.
func (*RocketchatBee) Action ¶
func (mod *RocketchatBee) Action(action bees.Action) []bees.Placeholder
Action triggers the action passed to it.
func (*RocketchatBee) ReloadOptions ¶
func (mod *RocketchatBee) ReloadOptions(options bees.BeeOptions)
ReloadOptions parses the config options and initializes the Bee.
type RocketchatBeeFactory ¶
type RocketchatBeeFactory struct {
bees.BeeFactory
}
RocketchatBeeFactory is a factory for RocketchatBees.
func (*RocketchatBeeFactory) Actions ¶
func (factory *RocketchatBeeFactory) Actions() []bees.ActionDescriptor
Actions describes the available actions provided by this Bee.
func (*RocketchatBeeFactory) Description ¶
func (factory *RocketchatBeeFactory) Description() string
Description returns the description of this Bee.
func (*RocketchatBeeFactory) ID ¶
func (factory *RocketchatBeeFactory) ID() string
ID returns the ID of this Bee.
func (*RocketchatBeeFactory) Image ¶
func (factory *RocketchatBeeFactory) Image() string
Image returns the filename of an image for this Bee.
func (*RocketchatBeeFactory) LogoColor ¶
func (factory *RocketchatBeeFactory) LogoColor() string
LogoColor returns the preferred logo background color (used by the admin interface).
func (*RocketchatBeeFactory) Name ¶
func (factory *RocketchatBeeFactory) Name() string
Name returns the name of this Bee.
func (*RocketchatBeeFactory) New ¶
func (factory *RocketchatBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
New returns a new Bee instance configured with the supplied options.
func (*RocketchatBeeFactory) Options ¶
func (factory *RocketchatBeeFactory) Options() []bees.BeeOptionDescriptor
Options returns the options available to configure this Bee.
type RoomResponseContainer ¶
type RoomResponseContainer struct {
Room Room `json:"room"`
}
RoomResponseContainer is used to receive the ID of a room/channel