Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProxyingRequest int = iota PreviewerResponse )
Variables ¶
This section is empty.
Functions ¶
func MessageTypeToString ¶
MessageTypeToString convert from integer value.
func StringToMessageType ¶
StringToMessageType convert from string.
Types ¶
type Preview ¶
type Preview struct { Params *PreviewParams `json:"params"` Image []byte `json:"image,omitempty"` }
Preview
type PreviewParams ¶
type PreviewParams struct { Width int `json:"width"` Height int `json:"height"` URL string `json:"url,omitempty"` }
PreviewParams
type Request ¶
type Request struct { Params *PreviewParams `json:"params"` Headers map[string][]string `json:"headers,omitempty"` }
Request data
Click to show internal directories.
Click to hide internal directories.