updates

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveProposalsWorker

type ActiveProposalsWorker struct {
	// contains filtered or unexported fields
}

func NewActiveProposalsWorker

func NewActiveProposalsWorker(sdk *snapshot.SDK, proposals *db.ProposalService, checkInterval time.Duration) *ActiveProposalsWorker

func (*ActiveProposalsWorker) Start

type DeleteProposalConsumer added in v0.5.1

type DeleteProposalConsumer struct {
	// contains filtered or unexported fields
}

func NewDeleteProposalConsumer added in v0.5.1

func NewDeleteProposalConsumer(
	s *db.ProposalService,
	fc *fetcher.Client,
	nc *nats.Conn,
) *DeleteProposalConsumer

func (*DeleteProposalConsumer) Start added in v0.5.1

type MessagesWorker added in v0.5.1

type MessagesWorker struct {
	// contains filtered or unexported fields
}

func NewMessagesWorker added in v0.5.1

func NewMessagesWorker(sdk *snapshot.SDK, messages *db.MessageService, checkInterval time.Duration) *MessagesWorker

func (*MessagesWorker) Start added in v0.5.1

func (w *MessagesWorker) Start(ctx context.Context) error

type ProposalWorker

type ProposalWorker struct {
	// contains filtered or unexported fields
}

func NewProposalsWorker

func NewProposalsWorker(sdk *snapshot.SDK, proposals *db.ProposalService, checkInterval time.Duration) *ProposalWorker

func (*ProposalWorker) FetchList added in v0.6.6

func (w *ProposalWorker) FetchList(ctx context.Context) error

func (*ProposalWorker) MarkToRefetch added in v0.6.6

func (w *ProposalWorker) MarkToRefetch(ctx context.Context) error

type SpacesUpdater added in v0.5.3

type SpacesUpdater struct {
	// contains filtered or unexported fields
}

func NewSpacesUpdater added in v0.5.3

func NewSpacesUpdater(sdk *snapshot.SDK, spaces *db.SpaceService) *SpacesUpdater

func (*SpacesUpdater) ProcessSpace added in v0.5.3

func (s *SpacesUpdater) ProcessSpace(ctx context.Context, space string) error

func (*SpacesUpdater) ProcessSpaces added in v0.5.3

func (s *SpacesUpdater) ProcessSpaces(ctx context.Context, spaces []string) error

type SpacesWorker

type SpacesWorker struct {
	// contains filtered or unexported fields
}

func NewSpacesWorker

func NewSpacesWorker(spaceUpdater *SpacesUpdater, spaces *db.SpaceService, checkInterval time.Duration) *SpacesWorker

func (*SpacesWorker) Start

func (w *SpacesWorker) Start(ctx context.Context) error

type UpdateSpaceSettingsConsumer added in v0.5.3

type UpdateSpaceSettingsConsumer struct {
	// contains filtered or unexported fields
}

func NewUpdateSpaceSettingsConsumer added in v0.5.3

func NewUpdateSpaceSettingsConsumer(
	su *SpacesUpdater,
	fc *fetcher.Client,
	nc *nats.Conn,
) *UpdateSpaceSettingsConsumer

func (*UpdateSpaceSettingsConsumer) Start added in v0.5.3

type VoteWorker

type VoteWorker struct {
	// contains filtered or unexported fields
}

func NewVotesWorker

func NewVotesWorker(sdk *snapshot.SDK, votes *db.VoteService, proposals *db.ProposalService, unrpocessedSpaces unprocessedSpacesFinder, checkInterval time.Duration) *VoteWorker

func (*VoteWorker) LoadActive

func (w *VoteWorker) LoadActive(ctx context.Context) error

func (*VoteWorker) LoadHistorical

func (w *VoteWorker) LoadHistorical(ctx context.Context) error

Jump to

Keyboard shortcuts

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