memorystore

package
v0.0.0-...-05d0564 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 1 Imported by: 5

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