Documentation ¶
Index ¶
- Constants
- type Executor
- func (e *Executor) Done()
- func (e *Executor) GetState(namespace string, key string) ([]byte, error)
- func (e *Executor) GetStateMetadata(namespace string, id string) (map[string][]byte, error)
- func (e *Executor) GetStateRangeScanIterator(namespace string, start string, end string) (driver.Iterator, error)
- type GetFunc
- type Iterator
- type Network
- func (n *Network) AreTokensSpent(c view.Context, namespace string, IDs []string) ([]bool, error)
- func (n *Network) Broadcast(context context.Context, blob interface{}) error
- func (n *Network) Channel() string
- func (n *Network) ComputeTxID(id *driver.TxID) string
- func (n *Network) EnvelopeExists(id string) bool
- func (n *Network) FetchPublicParameters(namespace string) ([]byte, error)
- func (n *Network) GetEnrollmentID(raw []byte) (string, error)
- func (n *Network) GetRWSet(id string, results []byte) (driver.RWSet, error)
- func (n *Network) GetTransient(id string) (driver.TransientMap, error)
- func (n *Network) IsFinal(ctx context.Context, id string) error
- func (n *Network) IsFinalForParties(id string, endpoints ...view.Identity) error
- func (n *Network) Ledger() (driver.Ledger, error)
- func (n *Network) LocalMembership() driver.LocalMembership
- func (n *Network) LookupTransferMetadataKey(namespace string, startingTxID string, key string, timeout time.Duration) ([]byte, error)
- func (n *Network) Name() string
- func (n *Network) NewEnvelope() driver.Envelope
- func (n *Network) ProcessNamespace(namespace string) error
- func (n *Network) QueryTokens(context view.Context, namespace string, IDs []*token.ID) ([][]byte, error)
- func (n *Network) RequestApproval(context view.Context, tms *token2.ManagementService, requestRaw []byte, ...) (driver.Envelope, error)
- func (n *Network) StoreEnvelope(id string, env []byte) error
- func (n *Network) StoreTransient(id string, transient driver.TransientMap) error
- func (n *Network) SubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
- func (n *Network) TransientExists(id string) bool
- func (n *Network) UnsubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
- func (n *Network) Vault(namespace string) (driver.Vault, error)
- type RWSWrapper
- func (rwset *RWSWrapper) Bytes() ([]byte, error)
- func (rwset *RWSWrapper) DeleteState(namespace string, key string) error
- func (rwset *RWSWrapper) Done()
- func (rwset *RWSWrapper) Equals(r interface{}, namespace string) error
- func (rwset *RWSWrapper) GetState(namespace string, key string) ([]byte, error)
- func (rwset *RWSWrapper) SetState(namespace string, key string, value []byte) error
- type RWSetProcessor
- type Vault
Constants ¶
View Source
const ( InvokeFunction = "invoke" QueryPublicParamsFunction = "queryPublicParams" QueryTokensFunctions = "queryTokens" AreTokensSpent = "areTokensSpent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) GetStateMetadata ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func NewNetwork ¶
func NewNetwork(sp view2.ServiceProvider, n *fabric.NetworkService, ch *fabric.Channel) *Network
func (*Network) AreTokensSpent ¶
func (*Network) EnvelopeExists ¶
func (*Network) FetchPublicParameters ¶
func (*Network) GetTransient ¶
func (n *Network) GetTransient(id string) (driver.TransientMap, error)
func (*Network) IsFinalForParties ¶
func (*Network) LocalMembership ¶
func (n *Network) LocalMembership() driver.LocalMembership
func (*Network) LookupTransferMetadataKey ¶
func (*Network) NewEnvelope ¶
func (*Network) ProcessNamespace ¶ added in v0.3.0
func (*Network) QueryTokens ¶
func (*Network) RequestApproval ¶
func (*Network) StoreTransient ¶
func (n *Network) StoreTransient(id string, transient driver.TransientMap) error
func (*Network) SubscribeTxStatusChanges ¶
func (n *Network) SubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
func (*Network) TransientExists ¶
func (*Network) UnsubscribeTxStatusChanges ¶
func (n *Network) UnsubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
type RWSWrapper ¶
type RWSWrapper struct {
// contains filtered or unexported fields
}
func NewRWSWrapper ¶
func NewRWSWrapper(r *fabric.RWSet) *RWSWrapper
func (*RWSWrapper) Bytes ¶
func (rwset *RWSWrapper) Bytes() ([]byte, error)
func (*RWSWrapper) DeleteState ¶
func (rwset *RWSWrapper) DeleteState(namespace string, key string) error
func (*RWSWrapper) Done ¶
func (rwset *RWSWrapper) Done()
func (*RWSWrapper) Equals ¶
func (rwset *RWSWrapper) Equals(r interface{}, namespace string) error
type RWSetProcessor ¶
type RWSetProcessor struct {
// contains filtered or unexported fields
}
func NewTokenRWSetProcessor ¶
func NewTokenRWSetProcessor(network net, ns string, sp view2.ServiceProvider, ownership network.Authorization, issued network.Issued, tokenStore processor.TokenStore) *RWSetProcessor
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func (*Vault) TransactionStatus ¶ added in v0.3.0
func (v *Vault) TransactionStatus(txID string) (driver.ValidationCode, error)
Click to show internal directories.
Click to hide internal directories.