session

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 5 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 {
	Begin(id string) error
	Load(id string) store.FsTxn
	Delete(id string)
}

Manager provide methods to operates on upload sessions

func New

func New(store store.Store, txns *sync.Map) Manager

New returns a session manager

Jump to

Keyboard shortcuts

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