slack

package module
v0.0.0-...-b11a5d3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

Google Cloud Platform logo

Google Cloud Functions - Slack Slash Command sample

See:

Documentation

Overview

Package slack is a Cloud Function which recieves a query from a Slack command and responds with the KG API result.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KGSearch

func KGSearch(w http.ResponseWriter, r *http.Request)

KGSearch uses the Knowledge Graph API to search for a query provided by a Slack command.

Types

type Message

type Message struct {
	ResponseType string       `json:"response_type"`
	Text         string       `json:"text"`
	Attachments  []attachment `json:"attachments"`
}

Message is the a Slack message event. see https://api.slack.com/docs/message-formatting

Jump to

Keyboard shortcuts

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