gchat

package
v0.0.0-...-a478110 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(bot *models.Bot)

func HandleRemoteInput

func HandleRemoteInput(inputMsgs chan<- models.Message, rules map[string]models.Rule, bot *models.Bot)

HandleOutput handles input messages for this remote.

func HandleRemoteOutput

func HandleRemoteOutput(message models.Message, bot *models.Bot)

HandleRemoteOutput handles output messages for this remote.

Types

type Client

type Client struct {
	Credentials        string
	ProjectID          string
	SubscriptionID     string
	ForceReplyToThread bool
}

Client struct.

func (*Client) Name

func (c *Client) Name() string

Name returns the name of the remote.

func (*Client) Reaction

func (c *Client) Reaction(_ models.Message, _ models.Rule, _ *models.Bot)

Reaction implementation to satisfy remote interface.

func (*Client) Read

func (c *Client) Read(inputMsgs chan<- models.Message, _ map[string]models.Rule, _ *models.Bot)

Read messages from Google Chat.

func (*Client) Send

func (c *Client) Send(message models.Message, _ *models.Bot)

Send messages to Google Chat.

type DomainEvent

type DomainEvent struct {
	User struct {
		Name        string `json:"name"`
		DisplayName string `json:"displayName"`
		AvatarURL   string `json:"avatarUrl"`
		Email       string `json:"email"`
		Type        string `json:"type"`
		DomainID    string `json:"domainId"`
	} `json:"user"`
}

Jump to

Keyboard shortcuts

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