Documentation ¶
Index ¶
- Variables
- func NewGetActivityHttpHandler(db *psql.Store, c figmentclient.Client) *getActivityHttpHandler
- func NewGetActivityUseCase(c figmentclient.Client, db *psql.Store) *getActivityUseCase
- func NewGetProposalsHttpHandler(db *psql.Store, c figmentclient.Client) *getProposalsHttpHandler
- func NewGetProposalsUseCase(c figmentclient.Client, db *psql.Store) *getProposalsUseCase
- func NewUpdateProposalsUseCase(c theceloclient.Client, proposalAggDb store.ProposalAgg) *updateProposalsUseCase
- func NewUpdateProposalsWorkerHandler(cfg *config.Config, db *psql.Store, c theceloclient.Client) *updateProposalsWorkerHandler
- type ActivityListView
- type GetActivityRequest
- type GetProposalsRequest
- type ProposalListView
- type UpdateProposalsCmdHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSomeProposalsNotUpdated = errors.New("error occurred while updating some proposals.")
)
Functions ¶
func NewGetActivityHttpHandler ¶
func NewGetActivityHttpHandler(db *psql.Store, c figmentclient.Client) *getActivityHttpHandler
func NewGetActivityUseCase ¶
func NewGetActivityUseCase(c figmentclient.Client, db *psql.Store) *getActivityUseCase
func NewGetProposalsHttpHandler ¶
func NewGetProposalsHttpHandler(db *psql.Store, c figmentclient.Client) *getProposalsHttpHandler
func NewGetProposalsUseCase ¶
func NewGetProposalsUseCase(c figmentclient.Client, db *psql.Store) *getProposalsUseCase
func NewUpdateProposalsUseCase ¶
func NewUpdateProposalsUseCase(c theceloclient.Client, proposalAggDb store.ProposalAgg) *updateProposalsUseCase
Types ¶
type ActivityListView ¶
type ActivityListView struct { Items []model.GovernanceActivitySeq `json:"items"` NextCursor *int64 `json:"next_cursor,omitempty"` }
func ToActivityListView ¶
func ToActivityListView(governanceActivitySeqs []model.GovernanceActivitySeq, nextCursor *int64) *ActivityListView
type GetActivityRequest ¶
type GetProposalsRequest ¶
type ProposalListView ¶
type ProposalListView struct { Items []model.ProposalAgg `json:"items"` NextCursor *int64 `json:"next_cursor,omitempty"` }
func ToProposalListView ¶
func ToProposalListView(proposalAggs []model.ProposalAgg, nextCursor *int64) *ProposalListView
type UpdateProposalsCmdHandler ¶
type UpdateProposalsCmdHandler struct {
// contains filtered or unexported fields
}
func NewUpdateProposalsCmdHandler ¶
func NewUpdateProposalsCmdHandler(db *psql.Store, c theceloclient.Client) *UpdateProposalsCmdHandler
func (*UpdateProposalsCmdHandler) Handle ¶
func (h *UpdateProposalsCmdHandler) Handle(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.