bizangela

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewAppInfoCache added in v0.2.3

func NewFeedToNotifyFlowCache added in v0.1.15

NewFeedToNotifyFlowCache 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 NewPullAccountAppInfoRelationTopic added in v0.2.3

func NewPullAccountAppInfoRelationTopic(
	a *AngelaBase,
	sa *libmq.Topic[modelangela.PullAppInfo],
) *libmq.Topic[modelangela.PullAccountAppInfoRelation]

func NewPullAppInfoTopic added in v0.2.3

func NewPullFeedTopic added in v0.0.5

func NewUpdateAppInfoIndexTopic added in v0.2.3

func NewUpdateAppInfoIndexTopic(
	a *AngelaBase,
) *libmq.Topic[modelangela.UpdateAppInfoIndex]

Types

type Angela

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

func NewAngela

func NewAngela(
	mq *libmq.MQ,
	pullAccountInfo *libmq.Topic[modeltiphereth.PullAccountInfo],
	pullAccountAppInfoRelation *libmq.Topic[modelangela.PullAccountAppInfoRelation],
	pullAppInfo *libmq.Topic[modelangela.PullAppInfo],
	pullFeed *libmq.Topic[modelyesod.PullFeed],
	notifyRouter *libmq.Topic[modelangela.NotifyRouter],
	notifyPush *libmq.Topic[modelangela.NotifyPush],
	parseFeedItem *libmq.Topic[modelangela.ParseFeedItemDigest],
	updateAppIndex *libmq.Topic[modelangela.UpdateAppInfoIndex],
) (*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
	UpsertAppInfo(context.Context, *modelgebura.AppInfo, *modelgebura.AppInfo) error
	UpsertAppInfos(context.Context, []*modelgebura.AppInfo) error
	AccountPurchaseAppInfos(context.Context, model.InternalID, []model.InternalID) 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