clientzip

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package clientzip provides clientside zipping functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	clientside.File

	ZipPolicy Policy

	//WhenZippingSet sets the file to set the given boolean when it is being zipped.
	WhenZippingSet *clientside.Bool
}

File is a (potentially zipped) file in client memory.

func (*File) Choose

func (f *File) Choose() client.Script

Choose asks the client to choose a File.

func (*File) Dropzone

func (f *File) Dropzone() seed.Option

Dropzone sets the seed to act as a dropzone for this file.

type Policy

type Policy int

Policy determines what is zipped.

const (
	//File is always zipped.
	Always Policy = iota

	//Only Folders are zipped, if a File is set to a single file, it will be left as is.
	FoldersOnly
)

Policies.

func (Policy) String

func (p Policy) String() string

Jump to

Keyboard shortcuts

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