data

package
v0.0.0-...-e399724 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenSubscriptionsDB

func OpenSubscriptionsDB() (database.DatabaseContext[database.Record], error)

func StoreSubscriptionDB

func StoreSubscriptionDB(dbctx database.DatabaseContext[database.Record], subscription subscribe.Subscription) error

Types

type AffectedInfo

type AffectedInfo struct {
	DestinationB64Email entity.Base64
	AffectedsEmail      []string
}

type AllAffectedsInfo

type AllAffectedsInfo []AffectedInfo

type EmailInfo

type EmailInfo struct {
	UsersAffected AllAffectedsInfo
	LeakInfo      LeakInfo
}

type LeakInfo

type LeakInfo struct {
	PlatformsAffected []query.Platform
	Leak              query.Leak
}

type QueryAffectedByLeakResult

type QueryAffectedByLeakResult struct {
	entity.HSHA256
	Email string
}

type QueryLeakByIdResult

type QueryLeakByIdResult struct {
	query.Platform
	query.Leak
}

type QuerySubscriptionResult

type QuerySubscriptionResult struct {
	subscribe.Subscriber
	subscribe.Affected
}

type QuerySubscriptionWithoutAffectedResult

type QuerySubscriptionWithoutAffectedResult struct {
	subscribe.Subscriber
	subscribe.Affected
}

type QuerySubscriptionsResult

type QuerySubscriptionsResult []QuerySubscriptionResult

func (QuerySubscriptionsResult) GetAffectUsers

func (qsr QuerySubscriptionsResult) GetAffectUsers() []subscribe.Affected

func (QuerySubscriptionsResult) GetAffectedsInfo

func (qsr QuerySubscriptionsResult) GetAffectedsInfo(usersAffectedByLeak []QueryAffectedByLeakResult) AllAffectedsInfo

Jump to

Keyboard shortcuts

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