Documentation
¶
Overview ¶
Package common defines models exposed by algod rest api
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildVersion ¶
type BuildVersion struct {
// required: true
// Algorand's major version number
Major int `json:"major"`
// required: true
// Algorand's minor version number
Minor int `json:"minor"`
// required: true
// Algorand's Build Number
BuildNumber int `json:"build_number"`
// required: true
// Hash of commit the build is based on
CommitHash string `json:"commit_hash"`
// required: true
// Branch the build is based on
Branch string `json:"branch"`
// required: true
// Branch-derived release channel the build is based on
Channel string `json:"channel"`
}
BuildVersion contains the current algod build version information.
type Version ¶
type Version struct {
// required: true
// returns a list of supported protocol versions ( i.e. v1, v2, etc. )
Versions []string `json:"versions"`
// required: true
GenesisID string `json:"genesis_id"`
// required: true
// swagger:strfmt byte
GenesisHash []byte `json:"genesis_hash_b64"`
// required: true
Build BuildVersion `json:"build"`
}
Version contains the current algod version.
Note that we annotate this as a model so that legacy clients can directly import a swagger generated Version model. swagger:model Version
Click to show internal directories.
Click to hide internal directories.