content

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const DEFAULT_PRIORITY float64 = 10.0

Variables

This section is empty.

Functions

func GetImageBinary

func GetImageBinary(c *Content) (io.Reader, error)

func RegisterContentType

func RegisterContentType(name string, getImageBinary func(*Content) (io.Reader, 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