figma

package
v0.0.0-...-6156683 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 1 Imported by: 0

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 CommentFragment struct {
	Text    string `json:"text"`
	Mention string `json:"mention"`
}

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 User

type User struct {
	Id     string `json:"id"`
	Handle string `json:"handle"`
	ImgUrl string `json:"img_url"`
	Email  string `json:"email"`
}

type WebhookPostRequest

type WebhookPostRequest struct {
	EventType WebhookV2Event `json:"event_type"`
}

type WebhookV2Event

type WebhookV2Event string

Jump to

Keyboard shortcuts

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