Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImgurInfoApi ¶
type ImgurInfoApi struct {
// contains filtered or unexported fields
}
func (*ImgurInfoApi) Handler ¶
func (i *ImgurInfoApi) Handler(link string) (*LinkInfo, error)
type LinkHandler ¶
type LinkInfo ¶
type LinkInfoApi ¶
type LinkInfoApi struct { Client *http.Client UserAgent string Imgur *ImgurInfoApi Youtube *YoutubeInfoApi Twitter *TwitterInfoApi // contains filtered or unexported fields }
func New ¶
func New(opts ...Option) *LinkInfoApi
func (*LinkInfoApi) AddHandler ¶
func (i *LinkInfoApi) AddHandler(handler *LinkHandler)
func (*LinkInfoApi) DefaultLinkHandler ¶
func (api *LinkInfoApi) DefaultLinkHandler(link string) (*LinkInfo, error)
func (*LinkInfoApi) Retrieve ¶
func (i *LinkInfoApi) Retrieve(link string) (*LinkInfo, error)
type Option ¶
type Option interface { }
type TwitterInfoApi ¶
type TwitterInfoApi struct {
// contains filtered or unexported fields
}
func (*TwitterInfoApi) Handler ¶
func (i *TwitterInfoApi) Handler(link string) (*LinkInfo, error)
func (*TwitterInfoApi) Init ¶
func (i *TwitterInfoApi) Init()
type TwitterOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.