MultiMedia

package
v0.0.0-...-4f3821b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImageData

func DeleteImageData(id int64) error

func DeleteMediaPiece

func DeleteMediaPiece(id int64) error

func SaveImageData

func SaveImageData(i *ImageData) error

func SaveMediaPiece

func SaveMediaPiece(m *MediaPiece) error

func SaveMultiMediaMetadata

func SaveMultiMediaMetadata(tx *sql.Tx, fileToDelete *[]string, passageId int64, media *MultiMediaMetadata) error

Types

type ImageData

type ImageData data

func LoadImageData

func LoadImageData(id int64) (*ImageData, error)

func NewImage

func NewImage(d []byte) *ImageData

type MediaPiece

type MediaPiece data

func LoadMediaPiece

func LoadMediaPiece(id int64) (*MediaPiece, error)

func NewMediaPiece

func NewMediaPiece(d []byte) (*MediaPiece, error)

type MultiMediaMetadata

type MultiMediaMetadata struct {
	Id      int64 `json:"id"`
	Length  int64 `json:"length"`
	Type    uint8 `json:"type"`
	DataIds []int64
}

func LoadMultiMediaMetadata

func LoadMultiMediaMetadata(passageId int64) (*MultiMediaMetadata, error)

Jump to

Keyboard shortcuts

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