sqlitestore

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

sqlitestore implements an SQLite based store for resumable uploads via github.com/eventials/go-tus

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqliteStore

func NewSqliteStore(database string) (tus.Store, error)

NewSqliteStore creates a new *SqliteStore using the provided database path

Types

type SqliteStore

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

The SqliteStore type satisfies the tus.Store interface

func (*SqliteStore) Close

func (s *SqliteStore) Close()

func (*SqliteStore) Delete

func (s *SqliteStore) Delete(fingerprint string)

func (*SqliteStore) Get

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

func (*SqliteStore) Set

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

Jump to

Keyboard shortcuts

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