Documentation
¶
Index ¶
Constants ¶
View Source
const ( WebhookV2EventPing = WebhookV2Event("PING") WebhookV2EventFileComment = WebhookV2Event("FILE_COMMENT") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentFragment ¶
type FileCommentResponse ¶
type FileCommentResponse struct {
Response
Comment []CommentFragment `json:"comment"`
CommentID json.Number `json:"comment_id"`
CreatedAt string `json:"created_at"`
FileKey string `json:"file_key"`
FileName string `json:"file_name"`
Mentions []User `json:"mentions"`
OrderID json.Number `json:"order_id,omitempty"`
ParentID string `json:"parent_id"` // int
ResolvedAt string `json:"resolved_at"`
TriggeredBy User `json:"triggered_by"`
}
type PingResponse ¶
type PingResponse struct {
Response
}
type Response ¶
type Response struct {
EventType WebhookV2Event `json:"event_type" validate:"required"`
Passcode string `json:"passcode" validate:"required"`
Timestamp string `json:"timestamp" validate:"required"`
WebhookID json.Number `json:"webhook_id" validate:"required"`
}
type WebhookPostRequest ¶
type WebhookPostRequest struct {
EventType WebhookV2Event `json:"event_type"`
}
type WebhookV2Event ¶
type WebhookV2Event string
Click to show internal directories.
Click to hide internal directories.