Documentation ¶
Index ¶
Constants ¶
View Source
const ( BadActorIdField = "baid" BadActorIdentifierField = "identifier" )
View Source
const ( CredentialsIdField = "credid" CredentialsPasswordField = "password" )
View Source
const ( LeakIdField = "leakid" LeakContextField = "context" )
View Source
const ( PlatformIdField = "platid" PlatformNameField = "name" )
View Source
const ( UserIdField = "userid" UserEmailField = "email" )
View Source
const (
DateFormatLayout = "2006-01-02"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadActor ¶
type BadActor struct { Identifier string BaId entity.AutoGenKey }
func NewBadActor ¶
type Credentials ¶
type Credentials struct { Password Password CredId entity.AutoGenKey }
func NewCredentials ¶
func NewCredentials(password Password) Credentials
func (Credentials) Copy ¶
func (c Credentials) Copy(key entity.AutoGenKey) Credentials
func (Credentials) Record ¶
func (c Credentials) Record() []entity.Tuple
type DateInSeconds ¶
type DateInSeconds int64 // Epoch time in Seconds
func NewDateInSeconds ¶
func NewDateInSeconds(date string) (DateInSeconds, error)
func (DateInSeconds) String ¶
func (ds DateInSeconds) String() string
type HashCredentials ¶
type HashCredentials struct { HSHA256 entity.HSHA256 CredId entity.AutoGenKey }
func NewHashCredentials ¶
func NewHashCredentials(cr Credentials) HashCredentials
func (HashCredentials) Record ¶
func (hc HashCredentials) Record() []entity.Tuple
type HashUser ¶
type HashUser struct { HSHA256 entity.HSHA256 UserId entity.AutoGenKey }
func NewHashUser ¶
type Import ¶
type Import struct { AffectedUsers map[User]Credentials AffectedPlatforms []Platform Leakers []BadActor Leak Leak }
type Leak ¶
type Leak struct { Context Context LeakId entity.AutoGenKey }
type LeakBadActor ¶
type LeakBadActor struct { BaId entity.AutoGenKey LeakId entity.AutoGenKey }
func NewLeakBadActor ¶
func NewLeakBadActor(ba BadActor, leak Leak) LeakBadActor
func (LeakBadActor) Record ¶
func (lba LeakBadActor) Record() []entity.Tuple
type LeakCredentials ¶
type LeakCredentials struct { CredId entity.AutoGenKey LeakId entity.AutoGenKey }
func NewLeakCredentials ¶
func NewLeakCredentials(cred Credentials, leak Leak) LeakCredentials
func (LeakCredentials) Record ¶
func (lc LeakCredentials) Record() []entity.Tuple
type LeakParse ¶
type LeakParse map[User]Credentials
type LeakPlatform ¶
type LeakPlatform struct { PlatId entity.AutoGenKey LeakId entity.AutoGenKey }
func NewLeakPlatform ¶
func NewLeakPlatform(plat Platform, leak Leak) LeakPlatform
func (LeakPlatform) Record ¶
func (lpt LeakPlatform) Record() []entity.Tuple
type LeakUser ¶
type LeakUser struct { UserId entity.AutoGenKey LeakId entity.AutoGenKey }
func NewLeakUser ¶
type User ¶
type User struct { Email Email UserId entity.AutoGenKey }
type UserCredentials ¶
type UserCredentials struct { CredId entity.AutoGenKey UserId entity.AutoGenKey }
func NewUserCredentials ¶
func NewUserCredentials(cred Credentials, user User) UserCredentials
func (UserCredentials) Record ¶
func (uc UserCredentials) Record() []entity.Tuple
Click to show internal directories.
Click to hide internal directories.