redis

package
v0.0.0-...-d9343bb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTotalDuration

func FetchTotalDuration() string

func SaveResult

func SaveResult(payload Payload, result *ffprobe.ProbeData, error_message string) bool

func SetTotal

func SetTotal(duration int) bool

Types

type Payload

type Payload struct {
	Url  string `json:"url"`
	Type string `json:"type"`
	UUID string `json:"uuid"`
}

type Response

type Response struct {
	Url    string             `json:"url"`
	Type   string             `json:"type"`
	UUID   string             `json:"uuid"`
	Error  string             `json:"error"`
	Result *ffprobe.ProbeData `json:"result"`
}

func FetchResult

func FetchResult(uuid string) (Response, bool)

func FetchResultFromCache

func FetchResultFromCache(url string) (Response, bool)

Jump to

Keyboard shortcuts

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