media

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package media provides list of media types that could be uploaded.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBorders

func AddBorders(r io.Reader, mt Type) (io.Reader, error)

AddBorders add white borders to the image.

Types

type Type

type Type uint

Type represents instagram media upload type.

const (
	// TypeUndefined represents undefined media.
	TypeUndefined Type = iota // undefined

	// TypeStoryPhoto represents story photo media.
	TypeStoryPhoto // story_photo

)

func Parse

func Parse(v string) (Type, error)

Parse parses Type from string.

func (Type) String

func (i Type) String() string

func (Type) Valid

func (t Type) Valid() bool

Valid checks if Type value is in valid boundaries.

Jump to

Keyboard shortcuts

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