inputs

package
v0.0.0-...-f5c02d0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemImage

type FileSystemImage struct {
	URL string
	// contains filtered or unexported fields
}

FileSystemImage fetches an image from a URL.

func (*FileSystemImage) Data

func (fsImage *FileSystemImage) Data() []byte

Data ...

func (*FileSystemImage) Extension

func (fsImage *FileSystemImage) Extension() string

Extension ...

func (*FileSystemImage) Format

func (fsImage *FileSystemImage) Format() string

Format ...

func (*FileSystemImage) Image

func (fsImage *FileSystemImage) Image() image.Image

Image ...

func (*FileSystemImage) Read

func (fsImage *FileSystemImage) Read() (obj interface{}, err error)

Read ...

type Image

type Image interface {
	// Image ...
	Image() image.Image

	// Data ...
	Data() []byte

	// Format ...
	Format() string

	// Extension ...
	Extension() string
}

Image ...

type NetworkImage

type NetworkImage struct {
	URL string
	// contains filtered or unexported fields
}

NetworkImage fetches an image from a URL.

func (*NetworkImage) Data

func (networkImage *NetworkImage) Data() []byte

Data ...

func (*NetworkImage) Extension

func (networkImage *NetworkImage) Extension() string

Extension ...

func (*NetworkImage) Format

func (networkImage *NetworkImage) Format() string

Format ...

func (*NetworkImage) Image

func (networkImage *NetworkImage) Image() image.Image

Image ...

func (*NetworkImage) Read

func (networkImage *NetworkImage) Read() (obj interface{}, err error)

Read ...

Jump to

Keyboard shortcuts

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