sharecodedata

package
v0.1651.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate added in v0.1651.0

func Generate() (PlainText, Hashed)

Types

type Hashed added in v0.1651.0

type Hashed [32]byte

func HashedFromQuery added in v0.1651.0

func HashedFromQuery(q url.Values) Hashed

func HashedFromString added in v0.1651.0

func HashedFromString(plain string) Hashed

func (Hashed) Query added in v0.1651.0

func (h Hashed) Query() url.Values

func (Hashed) String added in v0.1651.0

func (h Hashed) String() string
type Link struct {
	PK        dynamo.ShareKeyType
	SK        dynamo.ShareSortKeyType
	UpdatedAt time.Time

	// LpaKey is the key for the LPA that will be accessed
	LpaKey dynamo.LpaKeyType
	// LpaOwnerKey is the key for the owner of the LPA that will be accessed
	LpaOwnerKey dynamo.LpaOwnerKeyType
	// ActorUID is the UID of the actor being given access to the LPA
	ActorUID actoruid.UID
	// IsReplacementAttorney is true when the actor being given access is being
	// appointed as a replacement (attorney or trust corporation)
	IsReplacementAttorney bool
	// IsTrustCorporation is true when the actor being given access is a trust
	// corporation
	IsTrustCorporation bool

	// InviteSentTo is the email address the supporter sent the invite to
	InviteSentTo string
	// LpaLinkedAt is the time the donor entered the access code
	LpaLinkedAt time.Time
	// LpaLinkedTo is set to the email address the donor used to sign-in when
	// using the code
	LpaLinkedTo string
}

A Link provides the details of the LPA that will be accessed by a share code.

type PlainText added in v0.1651.0

type PlainText string

func (PlainText) GoString added in v0.1651.0

func (PlainText) GoString() string

func (PlainText) LogValue added in v0.1651.0

func (PlainText) LogValue() slog.Value

func (PlainText) Plain added in v0.1651.0

func (p PlainText) Plain() string

func (PlainText) String added in v0.1651.0

func (PlainText) String() string

Jump to

Keyboard shortcuts

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