linkstore

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is implements an anchor link store.

func New

func New(provider storage.Provider) (*Store, error)

New creates a new anchor link store.

func (s *Store) DeleteLinks(links []*url.URL) error

DeleteLinks deletes the given hash links.

func (s *Store) GetLinks(anchorHash string) ([]*url.URL, error)

GetLinks returns the links for the given anchor hash.

func (s *Store) PutLinks(links []*url.URL) error

PutLinks stores the given hash links.

Jump to

Keyboard shortcuts

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