Files
2019-02-06 14:53:30 -06:00

19 lines
327 B
Go

package iface
import (
"github.com/auser/bitping/types"
)
type BlockListener interface {
Listen(ch chan types.Block, err chan error)
}
type TransactionListener interface {
Listen(ch chan types.Transaction, err chan error)
}
type BlockchainListener interface {
Block() BlockListener
Transaction() TransactionListener
}