Documentation
¶
Index ¶
- Constants
- func Drivers() []string
- func New(channel string, network Network, finality Finality, ...) (*committer, error)
- func Register(name string, driver driver.Driver)
- type ChaincodeEvent
- type ExternalCommitter
- func (c *ExternalCommitter) CommitTX(txid string, block uint64, indexInBloc int) error
- func (c *ExternalCommitter) DiscardTX(txid string) error
- func (c *ExternalCommitter) Status(txid string) (fdriver.ValidationCode, []string, []view.Identity, error)
- func (c *ExternalCommitter) Validate(txid string) (fdriver.ValidationCode, error)
- type Finality
- type Metrics
- type Network
- type TxEvent
- type ValidationFlags
Constants ¶
View Source
const (
ConfigTXPrefix = "configtx_"
)
Variables ¶
This section is empty.
Functions ¶
func Drivers ¶
func Drivers() []string
Drivers returns a sorted list of the names of the registered drivers.
Types ¶
type ChaincodeEvent ¶
type ChaincodeEvent struct {
BlockNumber uint64
TransactionID string
ChaincodeID string
EventName string
Payload []byte
}
ChaincodeEvent models the chaincode event details.
func (*ChaincodeEvent) Message ¶
func (chaincodeEvent *ChaincodeEvent) Message() interface{}
func (*ChaincodeEvent) Topic ¶
func (chaincodeEvent *ChaincodeEvent) Topic() string
type ExternalCommitter ¶
type ExternalCommitter struct {
// contains filtered or unexported fields
}
func GetExternalCommitter ¶
func GetExternalCommitter(name string, sp view2.ServiceProvider, vault driver.Vault) (*ExternalCommitter, error)
func (*ExternalCommitter) CommitTX ¶
func (c *ExternalCommitter) CommitTX(txid string, block uint64, indexInBloc int) error
func (*ExternalCommitter) DiscardTX ¶
func (c *ExternalCommitter) DiscardTX(txid string) error
func (*ExternalCommitter) Status ¶
func (c *ExternalCommitter) Status(txid string) (fdriver.ValidationCode, []string, []view.Identity, error)
func (*ExternalCommitter) Validate ¶
func (c *ExternalCommitter) Validate(txid string) (fdriver.ValidationCode, error)
type TxEvent ¶
type TxEvent struct {
Txid string
DependantTxIDs []string
Committed bool
Block uint64
IndexInBlock int
CommitPeer string
Err error
}
TxEvent contains information for token transaction commit
type ValidationFlags ¶
type ValidationFlags []uint8
Click to show internal directories.
Click to hide internal directories.