unpublished

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

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 unpublished operation.

func New

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

New returns new instance of unpublished operation store.

func (*Store) Delete

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

Delete will delete unpublished operation for suffix.

func (*Store) DeleteAll

func (s *Store) DeleteAll(suffixes []string) error

DeleteAll deletes all operations for suffixes.

func (*Store) Get

func (s *Store) Get(suffix string) (*operation.AnchoredOperation, error)

Get retrieves unpublished operation by suffix.

func (*Store) Put

func (s *Store) Put(op *operation.AnchoredOperation) error

Put saves an unpublished operation. If it it already exists an error will be returned.

Jump to

Keyboard shortcuts

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