traceable

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 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 a thin wrapper around the standard b7s store, adding a tracer to it.

func New

func New(store *store.Store) *Store

func (*Store) RemoveFunction

func (s *Store) RemoveFunction(ctx context.Context, cid string) error

func (*Store) RemovePeer

func (s *Store) RemovePeer(ctx context.Context, id peer.ID) error

func (*Store) RetrieveFunction

func (s *Store) RetrieveFunction(ctx context.Context, cid string) (blockless.FunctionRecord, error)

func (*Store) RetrieveFunctions

func (s *Store) RetrieveFunctions(ctx context.Context) ([]blockless.FunctionRecord, error)

func (*Store) RetrievePeer

func (s *Store) RetrievePeer(ctx context.Context, id peer.ID) (blockless.Peer, error)

func (*Store) RetrievePeers

func (s *Store) RetrievePeers(ctx context.Context) ([]blockless.Peer, error)

func (*Store) SaveFunction

func (s *Store) SaveFunction(ctx context.Context, function blockless.FunctionRecord) error

func (*Store) SavePeer

func (s *Store) SavePeer(ctx context.Context, peer blockless.Peer) error

Jump to

Keyboard shortcuts

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