rewind

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewindStore

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

func NewRewindStore

func NewRewindStore(db *sql.DB) *RewindStore

func (*RewindStore) Init

func (s *RewindStore) Init() error

func (*RewindStore) ReplaceMarkers

func (s *RewindStore) ReplaceMarkers(input string) (string, error)

func (*RewindStore) Retrieve

func (s *RewindStore) Retrieve(markerID string) (string, error)

func (*RewindStore) RetrieveByHash

func (s *RewindStore) RetrieveByHash(hash string) (string, error)

func (*RewindStore) Size

func (s *RewindStore) Size() (int, error)

func (*RewindStore) Stats

func (s *RewindStore) Stats() (map[string]interface{}, error)

func (*RewindStore) Store

func (s *RewindStore) Store(original string, compressed string) (string, error)

type StoredContent

type StoredContent struct {
	MarkerID   string    `json:"marker_id"`
	Hash       string    `json:"hash"`
	Original   string    `json:"original"`
	Compressed string    `json:"compressed"`
	CreatedAt  time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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