zip

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheState

type CacheState struct {
	Map  map[string]cacheEntry
	When time.Time
}

type ZipLoader

type ZipLoader struct {
	Url   string
	Local string
	// contains filtered or unexported fields
}

ZipLoader allows serving website content from a remote zip file.

func (*ZipLoader) Count

func (zl *ZipLoader) Count() int

func (*ZipLoader) Exists

func (zl *ZipLoader) Exists(path string) bool

func (*ZipLoader) Get

func (zl *ZipLoader) Get(path string) (*static.FileInfo, io.ReadCloser)

func (*ZipLoader) Load

func (zl *ZipLoader) Load() (exists bool, err error)

func (*ZipLoader) Update

func (zl *ZipLoader) Update(ctx context.Context) error

func (*ZipLoader) When

func (zl *ZipLoader) When() time.Time

Jump to

Keyboard shortcuts

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