clouddatastore

package
v0.0.0-...-1196ed7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 13 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
}

func NewStore

func NewStore(ctx context.Context) (*Store, error)

func (*Store) CleanOldPendingEvents

func (s *Store) CleanOldPendingEvents(ctx context.Context, height uint64) error

func (*Store) CurrentBlock

func (s *Store) CurrentBlock(ctx context.Context, process string) (uint64, error)

CurrentBlock implements store.Store

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, id types.ID) error

func (*Store) DeletePendingEvent

func (s *Store) DeletePendingEvent(ctx context.Context, pendingEvent *types.MapperEvent) error

func (*Store) EventsFromTo

func (s *Store) EventsFromTo(ctx context.Context, from, to uint64) ([]*types.MapperEvent, error)

func (*Store) FirstEvent

func (s *Store) FirstEvent(ctx context.Context) (*types.MapperEvent, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, id types.ID) (*types.Mapper, error)

func (*Store) GetAll

func (s *Store) GetAll(ctx context.Context) ([]*types.Mapper, error)

func (*Store) GetByOwner

func (s *Store) GetByOwner(ctx context.Context, owner common.Address, limit int, cursor string) ([]*types.Mapper, string, error)

func (*Store) GetEvents

func (s *Store) GetEvents(ctx context.Context, mapperID types.ID, limit int, cursor string) ([]*types.MapperEvent, string, error)

func (*Store) GetHistoryAt

func (s *Store) GetHistoryAt(ctx context.Context, id types.ID, at time.Time) (*types.MapperHistory, error)

func (*Store) PendingEventsForOwner

func (s *Store) PendingEventsForOwner(ctx context.Context, owner common.Address) ([]*types.MapperEvent, error)

func (*Store) Store

func (s *Store) Store(ctx context.Context, mapper *types.Mapper) error

func (*Store) StoreCurrentBlock

func (s *Store) StoreCurrentBlock(ctx context.Context, process string, height uint64) error

StoreCurrentBlock implements store.Store

func (*Store) StoreEvent

func (s *Store) StoreEvent(ctx context.Context, event *types.MapperEvent) error

func (*Store) StoreHistory

func (s *Store) StoreHistory(ctx context.Context, history *types.MapperHistory) error

func (*Store) StorePendingEvent

func (s *Store) StorePendingEvent(ctx context.Context, pendingEvent *types.MapperEvent) error

StorePendingEvent implements store.Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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