cache

package
v0.0.0-...-2e06684 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache struct for handling cache-related operations

func (*Cache) Curl

func (c *Cache) Curl(url string) (string, error)

func (*Cache) ExtractAudioFromVideo

func (c *Cache) ExtractAudioFromVideo() ([]string, error)

func (*Cache) ListCachedFiles

func (c *Cache) ListCachedFiles() ([]string, error)

ListCachedFiles lists cached files

func (*Cache) ListUploadedFiles

func (c *Cache) ListUploadedFiles() ([]string, error)

func (*Cache) SyncCachedDir

func (c *Cache) SyncCachedDir() (int, int, int, error)

type ICache

type ICache interface {
	Curl(url string) (string, error)
	SyncCachedDir() (int, int, int, error)
	ListCachedFiles() ([]string, error)
	ListUploadedFiles() ([]string, error)
	ExtractAudioFromVideo() ([]string, error)
	// contains filtered or unexported methods
}

func NewCache

func NewCache(uploadsFolder, cacheFolder, guildID string) ICache

NewCache initializes a new Cache struct

Jump to

Keyboard shortcuts

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