tailchat

package
v0.92.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package tailchat implements the Tailchat platform integration.

Index

Constants

View Source
const ID = "tailchat"

Variables

This section is empty.

Functions

func NewDriver added in v0.38.1

func NewDriver(_ *config.Type, _ store.Adapter) protocol.Driver

Types

type Action added in v0.38.1

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

func (*Action) CreateChannel added in v0.38.1

func (*Action) CreateChannel(_ protocol.Request) protocol.Response

func (*Action) DeleteMessage added in v0.92.0

func (*Action) DeleteMessage(_ protocol.Request) protocol.Response

func (*Action) GetChannelInfo added in v0.38.1

func (*Action) GetChannelInfo(_ protocol.Request) protocol.Response

func (*Action) GetChannelList added in v0.38.1

func (*Action) GetChannelList(_ protocol.Request) protocol.Response

func (*Action) GetLatestEvents added in v0.38.1

func (*Action) GetLatestEvents(_ protocol.Request) protocol.Response

func (*Action) GetStatus added in v0.38.1

func (*Action) GetStatus(_ protocol.Request) protocol.Response

func (*Action) GetSupportedActions added in v0.38.1

func (*Action) GetSupportedActions(_ protocol.Request) protocol.Response

func (*Action) GetUserInfo added in v0.38.1

func (*Action) GetUserInfo(_ protocol.Request) protocol.Response

func (*Action) GetVersion added in v0.38.1

func (*Action) GetVersion(_ protocol.Request) protocol.Response

func (*Action) RegisterChannels added in v0.38.1

func (*Action) RegisterChannels(_ protocol.Request) protocol.Response

func (*Action) RegisterSlashCommands added in v0.38.1

func (*Action) RegisterSlashCommands(_ protocol.Request) protocol.Response

func (*Action) SendMessage added in v0.38.1

func (a *Action) SendMessage(req protocol.Request) protocol.Response

func (*Action) UpdateMessage added in v0.92.0

func (*Action) UpdateMessage(_ protocol.Request) protocol.Response

type Adapter added in v0.38.1

type Adapter struct{}

func (*Adapter) EventConvert added in v0.38.1

func (*Adapter) EventConvert(data any) protocol.Event

func (*Adapter) MessageConvert added in v0.38.1

func (*Adapter) MessageConvert(data any) protocol.Message

type Driver added in v0.38.1

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

func (*Driver) HttpServer added in v0.38.1

func (d *Driver) HttpServer(ctx fiber.Ctx) error

func (*Driver) HttpWebhookClient added in v0.38.1

func (*Driver) HttpWebhookClient(_ protocol.Message) error

func (*Driver) Shutdown added in v0.92.0

func (d *Driver) Shutdown() error

func (*Driver) WebSocketClient added in v0.38.1

func (*Driver) WebSocketClient()

func (*Driver) WebSocketServer added in v0.38.1

func (*Driver) WebSocketServer()

type Payload

type Payload struct {
	ID      string      `json:"_id"`
	UserID  string      `json:"userId"`
	Type    string      `json:"type"`
	Payload PayloadData `json:"payload"`
}

type PayloadData added in v0.92.0

type PayloadData struct {
	GroupID             string `json:"groupId"`
	ConverseID          string `json:"converseId"`
	MessageID           string `json:"messageId"`
	MessageAuthor       string `json:"messageAuthor"`
	MessageSnippet      string `json:"messageSnippet"`
	MessagePlainContent string `json:"messagePlainContent"`
}

type SendMessageData

type SendMessageData struct {
	ConverseId string          `json:"converseId"`
	GroupId    string          `json:"groupId"`
	Content    string          `json:"content"`
	Plain      string          `json:"plain"`
	Meta       SendMessageMeta `json:"meta"`
}

type SendMessageMeta

type SendMessageMeta struct {
	Mentions []string         `json:"mentions"`
	Reply    SendMessageReply `json:"reply"`
}

type SendMessageReply

type SendMessageReply struct {
	Id      string `json:"_id"`
	Author  string `json:"author"`
	Content string `json:"content"`
}

type TokenData added in v0.92.0

type TokenData struct {
	Jwt string `json:"jwt"`
}

type TokenResponse

type TokenResponse struct {
	Data TokenData `json:"data"`
}

Jump to

Keyboard shortcuts

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