redisstore

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Props

type Props struct {
	Pool *redis.Pool
}

Props ...

type Service

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

Service ...

func New

func New(props *Props) (*Service, error)

New ...

func (Service) AddTx

func (s Service) AddTx(tx *statechain.Transaction) error

AddTx ...

func (Service) GatherPendingTransactions

func (s Service) GatherPendingTransactions() ([]*statechain.Transaction, error)

GatherPendingTransactions ...

func (*Service) GetHeadBlock

func (s *Service) GetHeadBlock() (mainchain.Block, error)

GetHeadBlock ...

func (Service) GetTx

func (s Service) GetTx(hash string) (*statechain.Transaction, error)

GetTx ...

func (Service) GetTxs

func (s Service) GetTxs(hashes []string) ([]*statechain.Transaction, error)

GetTxs ...

func (Service) HasTx

func (s Service) HasTx(hash string) (bool, error)

HasTx ...

func (Service) Props

func (s Service) Props() Props

Props ...

func (Service) RemoveTx

func (s Service) RemoveTx(hash string) error

RemoveTx ...

func (Service) RemoveTxs

func (s Service) RemoveTxs(hashes []string) error

RemoveTxs ...

func (*Service) SetHeadBlock

func (s *Service) SetHeadBlock(block *mainchain.Block) error

SetHeadBlock ...

Jump to

Keyboard shortcuts

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