query

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BadActorIdField         = "baid"
	BadActorIdentifierField = "identifier"
)
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 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 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     []User
	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 LeakParse

type LeakParse []User

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

Jump to

Keyboard shortcuts

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