haveibeenpwned

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright © 2023 github.com/alpkeskin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HaveIBeenPwned

type HaveIBeenPwned struct {
	Response HaveIBeenPwnedResponse
}

func New

func New() *HaveIBeenPwned

func (*HaveIBeenPwned) Lookup

func (h *HaveIBeenPwned) Lookup(email string)

func (*HaveIBeenPwned) Print

func (h *HaveIBeenPwned) Print()

type HaveIBeenPwnedResponse

type HaveIBeenPwnedResponse []struct {
	Name               string    `json:"Name"`
	Title              string    `json:"Title"`
	Domain             string    `json:"Domain"`
	BreachDate         string    `json:"BreachDate"`
	AddedDate          time.Time `json:"AddedDate"`
	ModifiedDate       time.Time `json:"ModifiedDate"`
	PwnCount           int       `json:"PwnCount"`
	Description        string    `json:"Description"`
	LogoPath           string    `json:"LogoPath"`
	DataClasses        []string  `json:"DataClasses"`
	IsVerified         bool      `json:"IsVerified"`
	IsFabricated       bool      `json:"IsFabricated"`
	IsSensitive        bool      `json:"IsSensitive"`
	IsRetired          bool      `json:"IsRetired"`
	IsSpamList         bool      `json:"IsSpamList"`
	IsMalware          bool      `json:"IsMalware"`
	IsSubscriptionFree bool      `json:"IsSubscriptionFree"`
}

Jump to

Keyboard shortcuts

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