mirror of
https://github.com/hanzoai/bitping-example-client.git
synced 2026-10-30 18:46:57 +00:00
19 lines
327 B
Go
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
|
|
}
|