identity

package
v0.1406.0-renovateallm... Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package identity provides types for capturing and validating an identity check.

Index

Constants

This section is empty.

Variables

View Source
var StatusValues = StatusOptions{
	Unknown:              StatusUnknown,
	Confirmed:            StatusConfirmed,
	Failed:               StatusFailed,
	InsufficientEvidence: StatusInsufficientEvidence,
	Expired:              StatusExpired,
}

Functions

This section is empty.

Types

type Status added in v0.1259.0

type Status uint8
const (
	StatusUnknown              Status = iota // unknown
	StatusConfirmed                          // confirmed
	StatusFailed                             // failed
	StatusInsufficientEvidence               // insufficient-evidence
	StatusExpired                            // expired
)

func ParseStatus added in v0.1259.0

func ParseStatus(s string) (Status, error)

func (Status) IsConfirmed added in v0.1259.0

func (i Status) IsConfirmed() bool

func (Status) IsExpired added in v0.1393.0

func (i Status) IsExpired() bool

func (Status) IsFailed added in v0.1259.0

func (i Status) IsFailed() bool

func (Status) IsInsufficientEvidence added in v0.1259.0

func (i Status) IsInsufficientEvidence() bool

func (Status) IsUnknown added in v0.1259.0

func (i Status) IsUnknown() bool

func (Status) MarshalText added in v0.1259.0

func (i Status) MarshalText() ([]byte, error)

func (Status) String added in v0.1259.0

func (i Status) String() string

func (*Status) UnmarshalText added in v0.1259.0

func (i *Status) UnmarshalText(text []byte) error

type StatusOptions added in v0.1259.0

type StatusOptions struct {
	Unknown              Status
	Confirmed            Status
	Failed               Status
	InsufficientEvidence Status
	Expired              Status
}

type UserData

type UserData struct {
	Status         Status
	FirstNames     string
	LastName       string
	DateOfBirth    date.Date
	RetrievedAt    time.Time
	CurrentAddress place.Address
}

func (UserData) MatchName

func (u UserData) MatchName(firstNames, lastName string) bool

Jump to

Keyboard shortcuts

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