slackevents

package
v0.0.0-...-cf50703 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	User    string `json:"user"`
	From    string `json:"from"`
	Text    string `json:"text"`
	Source  string `json:"source"`
	ReplyTo struct {
		Channel string `json:"address"`
	} `json:"reply_to"`
}

type SlackEvent

type SlackEvent struct {
	Token    string `json:"token"`
	TeamId   string `json:"team_id"`
	Type     string `json:"type"`
	ApiAppId string `json:"api_app_id"`

	Event struct {
		Type        string `json:"type"`
		User        string `json:"user"`
		Text        string `json:"text"`
		ClientMsgId string `json:"client_msg_id"`
		Ts          string `json:"ts"`
		Channel     string `json:"channel"`
		EventTs     string `json:"event_ts"`
		ChannelType string `json:"channel_type"`
	} `json:"event"`
	AuthedUsers []string `json:"authed_users"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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