anchorlink

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: 8 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 implements storage for anchor event.

func New

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

New returns new instance of anchor event store.

func (*Store) Delete

func (s *Store) Delete(id string) error

Delete deletes anchor event by id.

func (*Store) Get

func (s *Store) Get(id string) (*linkset.Link, error)

Get retrieves anchor link by ID.

func (*Store) Put

func (s *Store) Put(anchorLink *linkset.Link) error

Put saves an anchor event. If it already exists it will be overwritten.

Jump to

Keyboard shortcuts

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