store

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: GPL-3.0 Imports: 7 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 {
	*redis.Service
}

Store implements wallet and transactions stores.

func NewStore

func NewStore(s *redis.Service) *Store

NewStore returns a new wallet store.

func (*Store) Fetch

func (s *Store) Fetch(ctx context.Context, filter wallet.Filter) (wallet.W, error)

Fetch wallet redis implementation.

func (*Store) FetchManyTx

func (s *Store) FetchManyTx(ctx context.Context, filter wallet.TxFilter) ([]wallet.Tx, error)

FetchManyTx transaction redis implementation.

func (*Store) Insert

func (s *Store) Insert(ctx context.Context, w wallet.W) error

Insert wallet redis implementation.

func (*Store) InsertTx

func (s *Store) InsertTx(ctx context.Context, tx wallet.Tx) error

InsertTx transaction redis implementation.

func (*Store) Remove

func (s *Store) Remove(ctx context.Context, filter wallet.Filter) error

Remove wallet redis implementation.

Jump to

Keyboard shortcuts

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