images

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 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 {
	ContentType string
	Data        []byte
}

func New

func New(data []byte) (*Image, error)

func (Image) Encode

func (i Image) Encode() ([]byte, error)

func (*Image) MarshalJSON

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

func (*Image) UnmarshalJSON

func (i *Image) UnmarshalJSON(data []byte) error

type MediaBuilder

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

func NewMediaBuilder

func NewMediaBuilder() *MediaBuilder

func (*MediaBuilder) Base64

func (m *MediaBuilder) Base64(str string) *MediaBuilder

func (*MediaBuilder) HTTP

func (m *MediaBuilder) HTTP(url string) *MediaBuilder

func (*MediaBuilder) Nil

func (m *MediaBuilder) Nil() bool

func (*MediaBuilder) Reader

func (m *MediaBuilder) Reader(reader io.Reader) *MediaBuilder

func (*MediaBuilder) ToBase64

func (m *MediaBuilder) ToBase64() (string, error)

Jump to

Keyboard shortcuts

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