Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(authenticateRequests bool, key string, wh WebHook) func(events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
NewHandler initializes and returns a Lambda handler to process incoming requests.
Types ¶
type Request ¶
type Request struct { Type string `json:"type"` ID string `json:"id"` Timestamp string `json:"timestamp"` LocalTimestamp string `json:"localTimestamp"` ServiceURL string `json:"serviceUrl"` ChannelID string `json:"channelId"` FromUser User `json:"from"` Conversation struct { ID string `json:"id"` } `json:"conversation"` RecipientUser User `json:"recipient"` TextFormat string `json:"textFormat"` Text string `json:"text"` Attachments []struct { ContentType string `json:"contentType"` Content string `json:"Content"` } `json:"attachments"` Entities []interface{} `json:"entities"` ChannelData struct { TeamsChannelID string `json:"teamsChannelId"` TeamsTeamID string `json:"teamsTeamId"` } }
Request data representing an inbound WebHook request from Microsoft Teams.
type Response ¶
Response represents the data to return to Microsoft Teams.
func BuildResponse ¶
BuildResponse is a helper method to build a Response
Click to show internal directories.
Click to hide internal directories.