query

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BadActorIdField         = "baid"
	BadActorIdentifierField = "identifier"
)
View Source
const (
	CredentialsIdField       = "credid"
	CredentialsPasswordField = "password"
)
View Source
const (
	LeakIdField          = "leakid"
	LeakContextField     = "context"
	LeakShareDateSCField = "sharedatesc"
)
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

func NewBadActor(identifier string) (BadActor, error)

func (BadActor) Copy

func (ba BadActor) Copy(key entity.AutoGenKey) BadActor

func (BadActor) Record

func (ba BadActor) Record() []entity.Tuple

type Context

type Context string

type Credentials

type Credentials struct {
	Password Password
	CredId   entity.AutoGenKey
}

func NewCredentials

func NewCredentials(password Password) Credentials

func (Credentials) Copy

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 Email

type Email string

func NewEmail added in v0.0.9

func NewEmail(email string) (Email, error)

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

func NewHashUser(us User) HashUser

func (HashUser) Record

func (hu HashUser) Record() []entity.Tuple

type Import

type Import struct {
	AffectedUsers     map[User]Credentials
	AffectedPlatforms []Platform
	Leakers           []BadActor
	Leak              Leak
}

type Leak

type Leak struct {
	Context     Context
	ShareDateSC DateInSeconds
	LeakId      entity.AutoGenKey
}

func NewLeak

func NewLeak(context string, shareDateSC DateInSeconds) (Leak, error)

func (Leak) Copy

func (l Leak) Copy(key entity.AutoGenKey) Leak

func (Leak) Record

func (l Leak) Record() []entity.Tuple

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

func NewLeakUser(user User, leak Leak) LeakUser

func (LeakUser) Record

func (lu LeakUser) Record() []entity.Tuple

type Password

type Password string

func NewPassword

func NewPassword(password string) (Password, error)

type Platform

type Platform struct {
	Name   string
	PlatId entity.AutoGenKey
}

func NewPlatform

func NewPlatform(name string) (Platform, error)

func (Platform) Copy

func (p Platform) Copy(key entity.AutoGenKey) Platform

func (Platform) Record

func (p Platform) Record() []entity.Tuple

type User

type User struct {
	Email  Email
	UserId entity.AutoGenKey
}

func NewUser

func NewUser(email Email) User

func (User) Copy

func (u User) Copy(key entity.AutoGenKey) User

func (User) Record

func (u User) Record() []entity.Tuple

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

Jump to

Keyboard shortcuts

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