libcats

package module
v0.0.0-...-069fc73 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cachePath string)

Types

type CallbackToken

type CallbackToken struct {
	// contains filtered or unexported fields
}

func CreateMetaDataCallback

func CreateMetaDataCallback(callback MetaDataCallback, lastPost string) *CallbackToken

func (*CallbackToken) Close

func (token *CallbackToken) Close()

func (*CallbackToken) LoadNextBatch

func (token *CallbackToken) LoadNextBatch()

type ImageCallback

type ImageCallback interface {
	ImageReceived(image []byte, id string)
	ImageFailed(id string)
}

type ImageCallbackToken

type ImageCallbackToken struct {
	// contains filtered or unexported fields
}

func CreateImageCallback

func CreateImageCallback(callback ImageCallback, width int, height int, id string, url string) *ImageCallbackToken

func (*ImageCallbackToken) Close

func (token *ImageCallbackToken) Close()

type ImageInfo

type ImageInfo struct {
	Id    string
	Image []byte
}

type ImageMetaData

type ImageMetaData struct {
	Url       string
	Title     string
	Author    string
	Permalink string
	Id        string
}

type MetaDataCallback

type MetaDataCallback interface {
	MetaDataReceived(url string, title string, author string, permalink string, id string)
}

Jump to

Keyboard shortcuts

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