Documentation ¶
Index ¶
- type CreateProcessParams
- type CreateTokenTransferParams
- type CreateTxReferenceParams
- type CreateVoteReferenceParams
- type DBTX
- type GetLastTxReferencesParams
- type GetTokenTransfersByFromAccountParams
- type Process
- type Queries
- func (q *Queries) CountTxReferences(ctx context.Context) (int64, error)
- func (q *Queries) CreateProcess(ctx context.Context, arg CreateProcessParams) (sql.Result, error)
- func (q *Queries) CreateTokenTransfer(ctx context.Context, arg CreateTokenTransferParams) (sql.Result, error)
- func (q *Queries) CreateTxReference(ctx context.Context, arg CreateTxReferenceParams) (sql.Result, error)
- func (q *Queries) CreateVoteReference(ctx context.Context, arg CreateVoteReferenceParams) (sql.Result, error)
- func (q *Queries) GetEntityCount(ctx context.Context) (int64, error)
- func (q *Queries) GetEntityProcessCount(ctx context.Context, entityID types.EntityID) (int64, error)
- func (q *Queries) GetLastTxReferences(ctx context.Context, arg GetLastTxReferencesParams) ([]TxReference, error)
- func (q *Queries) GetProcess(ctx context.Context, id types.ProcessID) (Process, error)
- func (q *Queries) GetProcessCount(ctx context.Context) (int64, error)
- func (q *Queries) GetProcessEnvelopeHeight(ctx context.Context, id types.ProcessID) (int64, error)
- func (q *Queries) GetProcessIDsByFinalResults(ctx context.Context, finalResults bool) ([]types.ProcessID, error)
- func (q *Queries) GetProcessIDsByResultsHeight(ctx context.Context, resultsHeight int64) ([]types.ProcessID, error)
- func (q *Queries) GetProcessStatus(ctx context.Context, id types.ProcessID) (int64, error)
- func (q *Queries) GetTokenTransfer(ctx context.Context, txHash types.Hash) (TokenTransfer, error)
- func (q *Queries) GetTokenTransfersByFromAccount(ctx context.Context, arg GetTokenTransfersByFromAccountParams) ([]TokenTransfer, error)
- func (q *Queries) GetTotalProcessEnvelopeHeight(ctx context.Context) (interface{}, error)
- func (q *Queries) GetTxReference(ctx context.Context, id int64) (TxReference, error)
- func (q *Queries) GetTxReferenceByHash(ctx context.Context, hash types.Hash) (TxReference, error)
- func (q *Queries) GetVoteReference(ctx context.Context, nullifier types.Nullifier) (VoteReference, error)
- func (q *Queries) GetVoteReferencesByProcessID(ctx context.Context, processID types.ProcessID) ([]VoteReference, error)
- func (q *Queries) SearchEntities(ctx context.Context, arg SearchEntitiesParams) ([]types.EntityID, error)
- func (q *Queries) SearchProcesses(ctx context.Context, arg SearchProcessesParams) ([]types.ProcessID, error)
- func (q *Queries) SearchVoteReferences(ctx context.Context, arg SearchVoteReferencesParams) ([]VoteReference, error)
- func (q *Queries) SetProcessResultsCancelled(ctx context.Context, id types.ProcessID) (sql.Result, error)
- func (q *Queries) SetProcessResultsHeight(ctx context.Context, arg SetProcessResultsHeightParams) (sql.Result, error)
- func (q *Queries) SetProcessResultsReady(ctx context.Context, arg SetProcessResultsReadyParams) (sql.Result, error)
- func (q *Queries) UpdateProcessFromState(ctx context.Context, arg UpdateProcessFromStateParams) (sql.Result, error)
- func (q *Queries) UpdateProcessResultByID(ctx context.Context, arg UpdateProcessResultByIDParams) (sql.Result, error)
- func (q *Queries) UpdateProcessResults(ctx context.Context, arg UpdateProcessResultsParams) (sql.Result, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SearchEntitiesParams
- type SearchProcessesParams
- type SearchVoteReferencesParams
- type SetProcessResultsHeightParams
- type SetProcessResultsReadyParams
- type TokenTransfer
- type TxReference
- type UpdateProcessFromStateParams
- type UpdateProcessResultByIDParams
- type UpdateProcessResultsParams
- type VoteReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProcessParams ¶
type CreateProcessParams struct { ID types.ProcessID EntityID types.EntityID StartBlock int64 EndBlock int64 ResultsHeight int64 HaveResults bool FinalResults bool CensusRoot types.CensusRoot RollingCensusRoot types.CensusRoot RollingCensusSize int64 MaxCensusSize int64 CensusUri string Metadata string CensusOrigin int64 Status int64 Namespace int64 EnvelopePb types.EncodedProtoBuf ModePb types.EncodedProtoBuf VoteOptsPb types.EncodedProtoBuf PrivateKeys string PublicKeys string QuestionIndex int64 CreationTime time.Time SourceBlockHeight int64 SourceNetworkID int64 ResultsVotes string }
type CreateTxReferenceParams ¶
type Process ¶
type Process struct { ID types.ProcessID EntityID types.EntityID StartBlock int64 EndBlock int64 ResultsHeight int64 HaveResults bool FinalResults bool ResultsVotes string ResultsWeight string ResultsEnvelopeHeight int64 ResultsSignatures string ResultsBlockHeight int64 CensusRoot types.CensusRoot RollingCensusRoot types.CensusRoot RollingCensusSize int64 MaxCensusSize int64 CensusUri string Metadata string CensusOrigin int64 Status int64 Namespace int64 EnvelopePb types.EncodedProtoBuf ModePb types.EncodedProtoBuf VoteOptsPb types.EncodedProtoBuf PrivateKeys string PublicKeys string QuestionIndex int64 CreationTime time.Time SourceBlockHeight int64 SourceNetworkID int64 }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountTxReferences ¶
func (*Queries) CreateProcess ¶
func (*Queries) CreateTokenTransfer ¶
func (*Queries) CreateTxReference ¶
func (*Queries) CreateVoteReference ¶
func (*Queries) GetEntityCount ¶
func (*Queries) GetEntityProcessCount ¶
func (*Queries) GetLastTxReferences ¶
func (q *Queries) GetLastTxReferences(ctx context.Context, arg GetLastTxReferencesParams) ([]TxReference, error)
func (*Queries) GetProcess ¶
func (*Queries) GetProcessCount ¶
func (*Queries) GetProcessEnvelopeHeight ¶
func (*Queries) GetProcessIDsByFinalResults ¶
func (*Queries) GetProcessIDsByResultsHeight ¶
func (*Queries) GetProcessStatus ¶
func (*Queries) GetTokenTransfer ¶
func (*Queries) GetTokenTransfersByFromAccount ¶
func (q *Queries) GetTokenTransfersByFromAccount(ctx context.Context, arg GetTokenTransfersByFromAccountParams) ([]TokenTransfer, error)
the column and parameter; see sqlc.yaml TODO(jordipainan): use sqlc.arg once limit/offset support it: https://github.com/kyleconroy/sqlc/issues/1025
func (*Queries) GetTotalProcessEnvelopeHeight ¶
func (*Queries) GetTxReference ¶
func (*Queries) GetTxReferenceByHash ¶
func (*Queries) GetVoteReference ¶
func (*Queries) GetVoteReferencesByProcessID ¶
func (*Queries) SearchEntities ¶
func (*Queries) SearchProcesses ¶
func (q *Queries) SearchProcesses(ctx context.Context, arg SearchProcessesParams) ([]types.ProcessID, error)
TODO(mvdan): when sqlc's parser is better, and does not get confused with string types, use: WHERE (LENGTH(sqlc.arg(entity_id)) = 0 OR entity_id = sqlc.arg(entity_id)) TODO(mvdan): use sqlc.arg once limit/offset support it: https://github.com/kyleconroy/sqlc/issues/1025 LIMIT sqlc.arg(limit) OFFSET sqlc.arg(offset)
func (*Queries) SearchVoteReferences ¶
func (q *Queries) SearchVoteReferences(ctx context.Context, arg SearchVoteReferencesParams) ([]VoteReference, error)
func (*Queries) SetProcessResultsCancelled ¶
func (*Queries) SetProcessResultsHeight ¶
func (*Queries) SetProcessResultsReady ¶
func (*Queries) UpdateProcessFromState ¶
func (*Queries) UpdateProcessResultByID ¶
func (*Queries) UpdateProcessResults ¶
type SearchEntitiesParams ¶
type SearchProcessesParams ¶
type TokenTransfer ¶
type TxReference ¶
type UpdateProcessResultByIDParams ¶
type UpdateProcessResultByIDParams struct { Votes string Weight string VoteOptsPb types.EncodedProtoBuf EnvelopePb types.EncodedProtoBuf ResultsSignatures string ID types.ProcessID }
Click to show internal directories.
Click to hide internal directories.