Documentation ¶
Index ¶
- func Add(db sql.Executor, proposal *types.Proposal) error
- func Get(db sql.Executor, id types.ProposalID) (proposal *types.Proposal, err error)
- func GetBlob(db sql.Executor, id []byte) (proposal []byte, err error)
- func GetByLayer(db sql.Executor, layerID types.LayerID) (proposals []*types.Proposal, err error)
- func GetIDsByLayer(db sql.Executor, layer types.LayerID) (ids []types.ProposalID, err error)
- func Has(db sql.Executor, id types.ProposalID) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByLayer ¶
GetByLayer gets proposals by a given layer ID.
func GetIDsByLayer ¶
GetIDsByLayer gets IDs for a given layer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.