content

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageBinary

func GetImageBinary(c *Content) ([]byte, error)

func RegisterContentType

func RegisterContentType(name string, getImageBinary func(*Content) ([]byte, error))

RegisterContentType registers an content type for use by GetContent. Name is the name of the content type, like "web" or "s3".

Types

type Content

type Content struct {
	SourcePlace string
	SourceType  string
	Meta        map[string]interface{}
}

func GetContent

func GetContent(urlPath string, conf *configure.Conf) *Content

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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