Documentation
¶
Index ¶
Constants ¶
View Source
const ProtocolVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Verifier spatialcontract.ApprovalVerifier
Consumer spatialcontract.ApprovalGrantConsumer
Ledger *reviewgrant.Ledger
}
type Request ¶
type Request struct {
ProtocolVersion int `json:"protocol_version"`
Action string `json:"action"`
ProjectRoot string `json:"project_root"`
CurrentPath string `json:"current_path"`
CurrentHash string `json:"current_hash"`
DraftPath string `json:"draft_path"`
Reviewer string `json:"reviewer"`
Grant spatialcontract.ApprovalEvidence `json:"grant"`
}
type Response ¶
type Response struct {
OK bool `json:"ok"`
Status string `json:"status,omitempty"`
CurrentPath string `json:"current_path,omitempty"`
Backup string `json:"backup,omitempty"`
ContractHash string `json:"contract_hash,omitempty"`
Written bool `json:"written,omitempty"`
Error string `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.