cache

package
v0.0.0-...-ff15c3c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cli *matrix.Client, cache cache.Cache, logger *zap.Logger) frost.Component

Types

type FetchEvent

type FetchEvent struct {
	URI      *url.URL
	File     chan matrix.File
	Error    chan error
	Progress chan ProgressPoint
}

func (FetchEvent) FrostEvent

func (c FetchEvent) FrostEvent()

type FetchThumbnailEvent

type FetchThumbnailEvent struct {
	URI           *url.URL
	Method        matrix.ThumbnailMethod
	Height, Width int
	Thumbnail     chan matrix.Thumbnail
	Error         chan error
}

func (FetchThumbnailEvent) FrostEvent

func (c FetchThumbnailEvent) FrostEvent()

type ProgressPoint

type ProgressPoint struct {
	BytesDownloaded, BytesTotal int64
	Percent                     float32
}

Jump to

Keyboard shortcuts

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