governance

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func NewUpdateProposalsWorkerHandler

func NewUpdateProposalsWorkerHandler(cfg *config.Config, db *psql.Store, c theceloclient.Client) *updateProposalsWorkerHandler

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 GetActivityRequest struct {
	ProposalId uint64 `uri:"proposal_id" binding:"required"`
	Cursor     *int64 `form:"cursor" binding:"-"`
	PageSize   *int64 `form:"page_size" binding:"-"`
}

type GetProposalsRequest

type GetProposalsRequest struct {
	Cursor   *int64 `form:"cursor" binding:"-"`
	PageSize *int64 `form:"page_size" binding:"-"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL