sharecode

package
v0.1384.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateProviderInvite added in v0.1360.0

type CertificateProviderInvite struct {
	LpaKey                      dynamo.LpaKeyType
	LpaOwnerKey                 dynamo.LpaOwnerKeyType
	LpaUID                      string
	Type                        lpadata.LpaType
	DonorFirstNames             string
	DonorFullName               string
	CertificateProviderUID      actoruid.UID
	CertificateProviderFullName string
	CertificateProviderEmail    string
}

type DynamoClient added in v0.1343.0

type DynamoClient interface {
	One(ctx context.Context, pk dynamo.PK, sk dynamo.SK, v interface{}) error
	OneByPK(ctx context.Context, pk dynamo.PK, v interface{}) error
	OneBySK(ctx context.Context, sk dynamo.SK, v interface{}) error
	Put(ctx context.Context, v interface{}) error
	DeleteOne(ctx context.Context, pk dynamo.PK, sk dynamo.SK) error
}

type EventClient added in v0.1360.0

type EventClient interface {
	SendAttorneyStarted(ctx context.Context, event event.AttorneyStarted) error
	SendNotificationSent(ctx context.Context, notificationSentEvent event.NotificationSent) error
	SendPaperFormRequested(ctx context.Context, paperFormRequestedEvent event.PaperFormRequested) error
}

type Localizer added in v0.1360.0

type Localizer interface {
	Concat(list []string, joiner string) string
	Count(messageID string, count int) string
	Format(messageID string, data map[string]interface{}) string
	FormatCount(messageID string, count int, data map[string]any) string
	FormatDate(t date.TimeOrDate) string
	FormatTime(t time.Time) string
	FormatDateTime(t time.Time) string
	Possessive(s string) string
	SetShowTranslationKeys(s bool)
	ShowTranslationKeys() bool
	T(messageID string) string
}

type NotifyClient added in v0.1360.0

type NotifyClient interface {
	SendActorEmail(context context.Context, to, lpaUID string, email notify.Email) error
	SendActorSMS(context context.Context, to, lpaUID string, sms notify.SMS) error
}

type Sender added in v0.1360.0

type Sender struct {
	// contains filtered or unexported fields
}

func NewSender added in v0.1360.0

func NewSender(shareCodeStore ShareCodeStore, notifyClient NotifyClient, appPublicURL string, randomString func(int) string, eventClient EventClient) *Sender

func (*Sender) SendAttorneys added in v0.1360.0

func (s *Sender) SendAttorneys(ctx context.Context, appData appcontext.Data, donor *lpadata.Lpa) error

func (*Sender) SendCertificateProviderInvite added in v0.1360.0

func (s *Sender) SendCertificateProviderInvite(ctx context.Context, appData appcontext.Data, invite CertificateProviderInvite) error

func (*Sender) SendCertificateProviderPrompt added in v0.1360.0

func (s *Sender) SendCertificateProviderPrompt(ctx context.Context, appData appcontext.Data, donor *donordata.Provided) error

func (*Sender) UseTestCode added in v0.1360.0

func (s *Sender) UseTestCode(shareCode string)

type ShareCodeStore added in v0.1360.0

type ShareCodeStore interface {
	Get(ctx context.Context, actorType actor.Type, shareCode string) (sharecodedata.Link, error)
	Put(ctx context.Context, actorType actor.Type, shareCode string, data sharecodedata.Link) error
}

type Store added in v0.1343.0

type Store struct {
	// contains filtered or unexported fields
}

func NewStore added in v0.1343.0

func NewStore(dynamoClient DynamoClient) *Store

func (*Store) Delete added in v0.1343.0

func (s *Store) Delete(ctx context.Context, shareCode sharecodedata.Link) error

func (*Store) Get added in v0.1343.0

func (s *Store) Get(ctx context.Context, actorType actor.Type, shareCode string) (sharecodedata.Link, error)

func (*Store) GetDonor added in v0.1343.0

func (s *Store) GetDonor(ctx context.Context) (sharecodedata.Link, error)

func (*Store) Put added in v0.1343.0

func (s *Store) Put(ctx context.Context, actorType actor.Type, shareCode string, data sharecodedata.Link) error

func (*Store) PutDonor added in v0.1343.0

func (s *Store) PutDonor(ctx context.Context, shareCode string, data sharecodedata.Link) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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