media

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBase64StringToByte

func ConvertBase64StringToByte(b64 string) ([]byte, string, error)

func ConvertByteToBase64

func ConvertByteToBase64(b []byte) string

Types

type MediaEntity

type MediaEntity struct {
	FileName string
	Path     string
}

func (*MediaEntity) Url

func (mediaEntity *MediaEntity) Url() string

type MediaServise

type MediaServise struct {
	MediaPath string
}

func (*MediaServise) DeleteMediaFile

func (media *MediaServise) DeleteMediaFile(url string) error

func (*MediaServise) SaveMediaFile

func (media *MediaServise) SaveMediaFile(fileName string, content []byte, userPath string) (MediaEntity, error)

Jump to

Keyboard shortcuts

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