store

package
v0.0.0-...-89def8d Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Name      string
	Cid       string
	ThreadID  thread.ID
	CreatedAt time.Time
}

type Store

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

func NewStore

func NewStore(store ds.TxnDatastore) *Store

func (*Store) Create

func (s *Store) Create(name, cid string, threadID thread.ID) error

func (*Store) Delete

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

func (*Store) Get

func (s *Store) Get(name string) (*Key, error)

func (*Store) GetByCid

func (s *Store) GetByCid(cid string) (*Key, error)

Jump to

Keyboard shortcuts

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