Documentation ¶
Index ¶
- Constants
- type DynamoClient
- type Path
- func (p Path) CanGoTo(attorney *attorneydata.Provided, lpa *lpadata.Lpa) bool
- func (p Path) Format(id string) string
- func (p Path) Redirect(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string) error
- func (p Path) RedirectQuery(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string, ...) error
- func (p Path) String() string
- type Store
- func (s *Store) Create(ctx context.Context, shareCode sharecodedata.Link, email string) (*attorneydata.Provided, error)
- func (s *Store) Delete(ctx context.Context) error
- func (s *Store) Get(ctx context.Context) (*attorneydata.Provided, error)
- func (s *Store) Put(ctx context.Context, attorney *attorneydata.Provided) error
Constants ¶
View Source
const ( PathCodeOfConduct = Path("/code-of-conduct") PathConfirmDontWantToBeAttorney = Path("/confirm-you-do-not-want-to-be-an-attorney") PathConfirmYourDetails = Path("/confirm-your-details") PathPhoneNumber = Path("/phone-number") PathProgress = Path("/progress") PathReadTheLpa = Path("/read-the-lpa") PathRightsAndResponsibilities = Path("/legal-rights-and-responsibilities") PathSign = Path("/sign") PathTaskList = Path("/task-list") PathWhatHappensNext = Path("/what-happens-next") PathWhatHappensWhenYouSign = Path("/what-happens-when-you-sign-the-lpa") PathWouldLikeSecondSignatory = Path("/would-like-second-signatory") PathYourPreferredLanguage = Path("/your-preferred-language") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoClient ¶
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 OneByPartialSK(ctx context.Context, pk dynamo.PK, partialSK dynamo.SK, v interface{}) error AllByPartialSK(ctx context.Context, pk dynamo.PK, partialSK dynamo.SK, v interface{}) error LatestForActor(ctx context.Context, sk dynamo.SK, v interface{}) error AllBySK(ctx context.Context, sk dynamo.SK, v interface{}) error AllByKeys(ctx context.Context, keys []dynamo.Keys) ([]map[string]dynamodbtypes.AttributeValue, error) AllKeysByPK(ctx context.Context, pk dynamo.PK) ([]dynamo.Keys, error) Put(ctx context.Context, v interface{}) error Create(ctx context.Context, v interface{}) error DeleteKeys(ctx context.Context, keys []dynamo.Keys) error DeleteOne(ctx context.Context, pk dynamo.PK, sk dynamo.SK) error Update(ctx context.Context, pk dynamo.PK, sk dynamo.SK, values map[string]dynamodbtypes.AttributeValue, expression string) error BatchPut(ctx context.Context, items []interface{}) error OneBySK(ctx context.Context, sk dynamo.SK, v interface{}) error OneByUID(ctx context.Context, uid string, v interface{}) error WriteTransaction(ctx context.Context, transaction *dynamo.Transaction) error }
type Path ¶
type Path string
func (Path) Redirect ¶
func (p Path) Redirect(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string) error
func (Path) RedirectQuery ¶
Directories ¶
Path | Synopsis |
---|---|
Package attorneydata provides types that describe the data entered by an attorney or trust corporation.
|
Package attorneydata provides types that describe the data entered by an attorney or trust corporation. |
Package attorneypage provides the pages that an attorney or trust corporation interacts with.
|
Package attorneypage provides the pages that an attorney or trust corporation interacts with. |
Click to show internal directories.
Click to hide internal directories.