workers

package
v0.0.0-...-3b7b66f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackEvent

type SlackEvent struct {
	EnvelopeId             string `json:"envelope_id"`
	Type                   string `json:"type"`
	AcceptsResponsePayload bool   `json:"accepts_response_payload"`
	Payload                struct {
		ApiAppID           string `json:"api_app_id"`
		EventID            string `json:"event_id"`
		EventTime          int    `json:"event_time"`
		Token              string `json:"token"`
		TeamID             string `json:"team_id"`
		Type               string `json:"type"`
		IsExtSharedChannel bool   `json:"is_ext_shared_channel"`
		Event              struct {
			Type    string `json:"type"`
			Channel struct {
				ID             string `json:"id"`
				IsChannel      bool   `json:"is_channel"`
				IsMPIM         bool   `json:"is_mpim"`
				Name           string `json:"name"`
				NameNormalized string `json:"name_normalized"`
				Created        int    `json:"created"`
			} `json:"channel"`
		} `json:"event"`
		Authorizations []struct {
			EnterpriseID        string `json:"enterprise_id"`
			TeamID              string `json:"team_id"`
			UserID              string `json:"user_id"`
			IsBot               bool   `json:"is_bot"`
			IsEnterpriseInstall bool   `json:"is_enterprise_install"`
		} `json:"authorizations"`
	} `json:"payload"`
	RetryAttempt int    `json:"retry_attempt"`
	RetryReason  string `json:"retry_reason"`
}

type SlackEventAcknowledge

type SlackEventAcknowledge struct {
	EnvelopeId string `json:"envelope_id"`
}

type SlackOpenSocketResponse

type SlackOpenSocketResponse struct {
	Ok  bool   `json:"ok"`
	Url string `json:"url"`
}

type SlackSocketDisconnect

type SlackSocketDisconnect struct {
	Type      string `json:"type"`
	Reason    string `json:"reason"`
	DebugInfo struct {
		Host string `json:"host"`
	} `json:"debug_info"`
}

type SlackSocketHello

type SlackSocketHello struct {
	Type           string `json:"type"`
	NumConnections int    `json:"num_connections"`
	DebugInfo      struct {
		Host                      string `json:"host"`
		BuildNumber               int    `json:"build_number"`
		ApproximateConnectionTime int    `json:"approximate_connection_time"`
	} `json:"debug_info"`
	ConnectionInfo struct {
		AppID string `json:"app_id"`
	} `json:"connection_info"`
}

type SlackSocketMessage

type SlackSocketMessage struct {
	Type string `json:"type"`
}

type SlackWorker

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

func NewSlackWorker

func NewSlackWorker() (*SlackWorker, error)

func (*SlackWorker) DoWork

func (worker *SlackWorker) DoWork()

Jump to

Keyboard shortcuts

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