bizangela

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewFeedToNotifyFlowMap added in v0.1.0

NewFeedToNotifyFlowMap Cache-Aside Pattern.

func NewNotifyFlowCache added in v0.1.0

NewNotifyFlowCache Cache-Aside Pattern.

func NewNotifyPushTopic added in v0.1.0

func NewNotifyTargetCache added in v0.1.0

NewNotifyTargetCache Cache-Aside Pattern.

func NewParseFeedItemDigestTopic added in v0.1.5

func NewParseFeedItemDigestTopic(
	a *AngelaBase,
) *libmq.Topic[modelangela.ParseFeedItemDigest]

func NewPullFeedTopic added in v0.0.5

func NewPullSteamAppTopic

func NewPullSteamAppTopic(
	a *AngelaBase,
) *libmq.Topic[modelangela.PullSteamApp]

Types

type Angela

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

func NewAngela

func NewAngela(
	mq *libmq.MQ,
	pullAccount *libmq.Topic[modeltiphereth.PullAccountInfo],
	pullSteamAccountAppRelation *libmq.Topic[modelangela.PullSteamAccountAppRelation],
	pullSteamApp *libmq.Topic[modelangela.PullSteamApp],
	pullFeed *libmq.Topic[modelyesod.PullFeed],
	notifyRouter *libmq.Topic[modelangela.NotifyRouter],
	notifyPush *libmq.Topic[modelangela.NotifyPush],
	parseFeedItem *libmq.Topic[modelangela.ParseFeedItemDigest],
) (*Angela, error)

type AngelaBase

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

type AngelaRepo added in v0.1.5

type AngelaRepo interface {
	UpdateAccount(context.Context, modeltiphereth.Account) error
	UpsertApps(context.Context, []*modelgebura.App) error
	UpsertFeed(context.Context, *modelfeed.Feed) error
	UpsertFeedItems(context.Context, []*modelfeed.Item, model.InternalID) ([]string, error)
	GetFeedItem(context.Context, model.InternalID) (*modelfeed.Item, error)
	UpdateFeedItemDigest(context.Context, *modelfeed.Item) error
}

Jump to

Keyboard shortcuts

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