img

package
v0.0.0-...-bda66fc Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Raw []byte
}

Image wraps the raw byte data of the image

func (*Image) Deserialize

func (i *Image) Deserialize(bts []byte) error

Deserialize implements tangle/datastore.serializable

func (*Image) Hash

func (i *Image) Hash() (hash.Hash, error)

Hash returns the hash for storage

func (*Image) Image

func (i *Image) Image() (image.Image, error)

Image returns the native golang image representation

func (*Image) JSON

func (i *Image) JSON() error

JSON prepares for json encoding

func (*Image) ReInit

func (i *Image) ReInit() error

ReInit restores the original field after serialization

func (*Image) Serialize

func (i *Image) Serialize() ([]byte, error)

Serialize implements tangle/datastore.serializable

func (*Image) Type

func (i *Image) Type() string

Type implements tangle/datastore.serializable

Jump to

Keyboard shortcuts

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