memorystore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryStore

func NewMemoryStore() (tus.Store, error)

NewMemoryStore creates a new MemoryStore.

Types

type MemoryStore

type MemoryStore struct {
	// contains filtered or unexported fields
}

MemoryStore implements an in-memory Store.

func (*MemoryStore) Close

func (s *MemoryStore) Close()

func (*MemoryStore) Delete

func (s *MemoryStore) Delete(fingerprint string)

func (*MemoryStore) Get

func (s *MemoryStore) Get(fingerprint string) (string, bool)

func (*MemoryStore) Set

func (s *MemoryStore) Set(fingerprint, url string)

Jump to

Keyboard shortcuts

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