session

package
v0.0.0-...-a027a2a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorSessionConflict indicates that a same session existed
	ErrorSessionConflict = errors.New("a session with same identity has been existed")
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Write(id string, name string, reader io.Reader) error
	Read(id string) (string, io.ReadCloser, error)
	Delete(id string)
}

Manager provide methods to operates on upload sessions

func New

func New() Manager

New returns a session manager

Jump to

Keyboard shortcuts

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