Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Sbac *sbac.ServiceSBAC Checkerclt *checkerclient.Client Sbacclt sbacclient.Client ShardID uint64 NodeID uint64 Checker checker.Service Top *network.Topology }
Config ...
type Controller ¶
Controller is the Key-Value controller
type Object ¶
type Object struct { Status string `json:"status"` Value interface{} `json:"value"` VersionID string `json:"versionId"` }
Object ...
type ObjectIDResponse ¶
type ObjectIDResponse struct {
ID string `json:"id"`
}
ObjectIDResponse contains a full json graph
type ObjectRequest ¶
type ObjectRequest struct {
Object interface{} `json:"object"`
}
ObjectRequest contains a full json graph
type ObjectResponse ¶
type ObjectResponse struct {
Object interface{} `json:"object"`
}
ObjectResponse contains a full json graph
type OutputObject ¶
type StateReport ¶
type StateReport struct { CommitDecisions map[uint64]bool `json:"commitDecisions"` HashID uint32 `json:"hashId"` PendingEvents int32 `json:"pendingEvents"` Phase1Decisions map[uint64]bool `json:"phase1Decisions"` Phase2Decisions map[uint64]bool `json:"phase2Decisions"` State string `json:"state"` }
StateReport ...
type StateReportResponse ¶
type StateReportResponse struct { PendingEvents int32 `json:"pendingEvents"` States []StateReport `json:"states"` }
StateReportResponse ...
type Trace ¶
type Trace struct { ContractID string `json:"contractId"` Dependencies []Dependency `json:"dependencies"` InputObjectVersionIDs []string `json:"inputObjectVersionIds"` InputReferenceVersionIDs []string `json:"inputReferenceVersionIds"` OutputObjects []OutputObject `json:"outputObjects"` Parameters []string `json:"parameters"` Procedure string `json:"procedure"` Returns []string `json:"returns"` }
Trace ...
type Transaction ¶
type Transaction struct { Mappings map[string]string `json:"mappings"` Signatures map[uint64]string `json:"signatures"` //base64 encoded Traces []Trace `json:"traces"` }
Transaction ...
func (*Transaction) ToSBAC ¶
func (tx *Transaction) ToSBAC(validator TransactionValidator) (*sbac.Transaction, error)
ToSBAC ...
type TransactionValidator ¶
type TransactionValidator interface {
Validate(tx *Transaction) error
}
TransactionValidator ...
Click to show internal directories.
Click to hide internal directories.