Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { GetAllProposals() (*Proposals, error) GetProposalByProposalId(string) (*ProposalDetails, error) }
type ProposalDetails ¶
type ProposalDetails struct { Status string `json:"status"` Timespan int64 `json:"timespan"` Title string `json:"title"` DescriptionUrl string `json:"descriptionUrl"` Proposer Proposer `json:"proposer"` Upvoted Upvoted `json:"upvoted"` Dequeue Dequeue `json:"dequeue"` Approval Approval `json:"approval"` Voted Voted `json:"voted"` Executed Executed `json:"executed"` }
type ProposalItems ¶
type ProposalItems map[string]ProposalDetails
type Proposals ¶
type Proposals struct {
Items ProposalItems `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.