Documentation ¶
Index ¶
Constants ¶
View Source
const ( StandardMetaTags = iota WeChatMP )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLMetaAttr ¶
type LinkPreviewContext ¶
type LinkPreviewContext struct { TargetType int `json:"-"` Title string `json:"title"` Description string `json:"description"` ImageURL string `json:"image"` Link string `json:"website"` Client *http.Request `json:"-"` Parsed *goquery.Document `json:"-"` }
func (*LinkPreviewContext) PreviewContext ¶
func (p *LinkPreviewContext) PreviewContext() *LinkPreviewContext
type PreviewHandler ¶
type PreviewHandler interface { PreviewContext() *LinkPreviewContext Preview() (*LinkPreviewContext, error) }
func GetPreviewHandler ¶
func GetPreviewHandler(c *LinkPreviewContext) (PreviewHandler, error)
type StandardLinkPreview ¶
type StandardLinkPreview struct {
*LinkPreviewContext
}
func (*StandardLinkPreview) Preview ¶
func (p *StandardLinkPreview) Preview() (*LinkPreviewContext, error)
Click to show internal directories.
Click to hide internal directories.