Documentation
¶
Index ¶
- Constants
- func NewDriver(_ config.Type, _ store.Adapter) protocol.Driver
- type Action
- func (a *Action) CreateChannel(_ protocol.Request) protocol.Response
- func (a *Action) GetChannelInfo(_ protocol.Request) protocol.Response
- func (a *Action) GetChannelList(_ protocol.Request) protocol.Response
- func (a *Action) GetLatestEvents(_ protocol.Request) protocol.Response
- func (a *Action) GetStatus(_ protocol.Request) protocol.Response
- func (a *Action) GetSupportedActions(_ protocol.Request) protocol.Response
- func (a *Action) GetUserInfo(_ protocol.Request) protocol.Response
- func (a *Action) GetVersion(_ protocol.Request) protocol.Response
- func (a *Action) RegisterChannels(_ protocol.Request) protocol.Response
- func (a *Action) RegisterSlashCommands(_ protocol.Request) protocol.Response
- func (a *Action) SendMessage(req protocol.Request) protocol.Response
- type Adapter
- type Driver
- type Payload
- type SendMessageData
- type SendMessageMeta
- type SendMessageReply
- type TokenResponse
Constants ¶
View Source
const ID = "tailchat"
Variables ¶
This section is empty.
Functions ¶
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) GetChannelInfo ¶ added in v0.38.1
func (*Action) GetChannelList ¶ added in v0.38.1
func (*Action) GetLatestEvents ¶ added in v0.38.1
func (*Action) GetSupportedActions ¶ added in v0.38.1
func (*Action) GetUserInfo ¶ added in v0.38.1
func (*Action) GetVersion ¶ added in v0.38.1
func (*Action) RegisterChannels ¶ added in v0.38.1
func (*Action) RegisterSlashCommands ¶ added in v0.38.1
type Adapter ¶ added in v0.38.1
type Adapter struct{}
func (*Adapter) EventConvert ¶ added in v0.38.1
type Driver ¶ added in v0.38.1
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) HttpWebhookClient ¶ added in v0.38.1
func (*Driver) WebSocketClient ¶ added in v0.38.1
func (d *Driver) WebSocketClient()
func (*Driver) WebSocketServer ¶ added in v0.38.1
func (d *Driver) WebSocketServer()
type Payload ¶
type Payload struct {
ID string `json:"_id"`
UserID string `json:"userId"`
Type string `json:"type"`
Payload 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"`
} `json:"payload"`
}
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 TokenResponse ¶
type TokenResponse struct {
Data struct {
Jwt string `json:"jwt"`
} `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.