session

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 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