Documentation
¶
Index ¶
Constants ¶
View Source
const ( PROPOSAL_STATUS_DEAD = iota PROPOSAL_STATUS_PROPOSED PROPOSAL_STATUS_APPROVED )
View Source
const ( PROPOSAL_TYPE_TRANSFER = iota PROPOSAL_TYPE_AGREEMENT PROPOSAL_TYPE_DATASET )
View Source
const ( RIVER_STATUS_DEAD = iota RIVER_STATUS_ALIVE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID string `json:"uid" bson:"_id"` Name string `json:"name" bson:"name"` ImageUri string `json:"imageUri,omitempty" bson:"imageUri"` TokenId int `json:"tokenId" bson:"tokenId"` TokenContract string `json:"tokenContract" bson:"tokenContract"` Description string `json:"description" bson:"description"` Editions int `json:"editions" bson:"editions"` Amount int `json:"amount" bson:"amount"` Status int `json:"status" bson:"status"` Host string `json:"host" bson:"host"` CreatedTime time.Time `json:"createdTime" bson:"createdTime"` Participants []string `json:"participants" bson:"participants"` ParticipantsCount int `json:"participantsCount" bson:"participantsCount"` Approvals []string `json:"approvals" bson:"approvals"` ApprovalsCount int `json:"approvalsCount" bson:"approvalsCount"` Generation int `json:"gen" bson:"generation"` }
type EventFilter ¶
type EventFilter struct {
ID string `json:"id" bson:"_id,omitempty"`
}
type EventHistory ¶
type EventHistory struct { RiverId string `json:"riverId" bson:"riverId"` EventId string `json:"eventId" bson:"eventId"` Generation int `json:"generation" bson:"generation"` User string `json:"user" bson:"user"` TokenContract string `json:"tokenContract" bson:"tokenContract"` TokenId int `json:"tokenId" bson:"tokenId"` }
type HistoryFilter ¶
type Proposal ¶
type Proposal struct { ID string `json:"uid" bson:"_id"` TransactionType int `json:"transactionType" bson:"transactionType"` Agreement string `json:"agreement" bson:"agreement"` Dataset string `json:"dataset" bson:"dataset"` TargetAddress string `json:"targetAddr" bson:"targetAddress"` TransferMutez int64 `json:"transferMutez" bson:"transferMutez"` ProposerAddress string `json:"proposerAddr" bson:"proposerAddress"` Status int `json:"status" bson:"status"` CreatedTime time.Time `json:"createdTime" bson:"createdTime"` ExpiredTime time.Time `json:"expiredTime" bson:"expiredTime"` Approvals []string `json:"approvals" bson:"approvals"` ApprovalsCount int `json:"approvalsCount" bson:"approvalsCount"` Generation int `json:"gen" bson:"generation"` }
type ProposalFilter ¶
type ProposalFilter struct {
ID string `json:"id" bson:"_id,omitempty"`
}
type ProposalUpdate ¶
type ProposalUpdate struct { }
type River ¶
type River struct { ID string `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` Description string `json:"description" bson:"description"` Agreement string `json:"agreement" bson:"agreement"` Dataset string `json:"dataset" bson:"dataset"` Generation int `json:"gen" bson:"generation"` CreatedTime time.Time `json:"createdTime" bson:"createdTime"` ExpiredTime time.Time `json:"expiredTime" bson:"expiredTime"` Status int `json:"status" bson:"status"` Owners []string `json:"stewards" bson:"owners"` OwnersCount int `json:"stewardsCount" bson:"ownersCount"` TokenId int `json:"currentTokenId" bson:"tokenId"` TokenContract string `json:"currentTokenContract" bson:"tokenContract"` EventData []Event `json:"events" bson:"-"` Events []string `json:"-" bson:"events"` WalletAddress string `json:"walletAddr" bson:"walletAddress"` ProposalData []Proposal `json:"proposals" bson:"-"` Proposals []string `json:"-" bson:"proposals"` }
type RiverFilter ¶
type RiverFilter struct {
ID string `json:"id" bson:"_id,omitempty"`
}
type RiversParams ¶
type RiversResponse ¶
Click to show internal directories.
Click to hide internal directories.