Documentation ¶
Index ¶
- Constants
- func App(logger *slog.Logger, localizer page.Localizer, lang localize.Lang, ...) http.Handler
- func NewDocumentStore(dynamoClient DynamoClient, s3Client S3Client, eventClient EventClient, ...) *documentStore
- func NewShareCodeStore(dynamoClient ShareCodeStoreDynamoClient) *shareCodeStore
- func NewUidStore(dynamoClient DynamoUpdateClient, searchClient SearchClient, ...) *uidStore
- type DocumentStore
- type DynamoClient
- type DynamoUpdateClient
- type ErrorHandler
- type EventClient
- type Logger
- type LpaStoreResolvingService
- type S3Client
- type SearchClient
- type SessionStore
- type ShareCodeStoreDynamoClient
- type UidClient
Constants ¶
View Source
const ( None handleOpt = 1 << iota RequireSession )
Variables ¶
This section is empty.
Functions ¶
func App ¶
func App( logger *slog.Logger, localizer page.Localizer, lang localize.Lang, tmpls, donorTmpls, certificateProviderTmpls, attorneyTmpls, supporterTmpls template.Templates, sessionStore *sesh.Store, lpaDynamoClient DynamoClient, appPublicURL string, payClient *pay.Client, notifyClient *notify.Client, addressClient *place.Client, oneLoginClient *onelogin.Client, s3Client S3Client, eventClient *event.Client, lpaStoreClient *lpastore.Client, searchClient *search.Client, ) http.Handler
func NewDocumentStore ¶ added in v0.794.0
func NewDocumentStore(dynamoClient DynamoClient, s3Client S3Client, eventClient EventClient, randomUUID func() string, now func() time.Time) *documentStore
func NewShareCodeStore ¶ added in v0.660.0
func NewShareCodeStore(dynamoClient ShareCodeStoreDynamoClient) *shareCodeStore
func NewUidStore ¶ added in v0.805.0
func NewUidStore(dynamoClient DynamoUpdateClient, searchClient SearchClient, now func() time.Time) *uidStore
Types ¶
type DocumentStore ¶ added in v0.794.0
type DynamoClient ¶
type DynamoClient interface { One(ctx context.Context, pk, sk string, v interface{}) error OneByPK(ctx context.Context, pk string, v interface{}) error OneByPartialSK(ctx context.Context, pk, partialSK string, v interface{}) error AllByPartialSK(ctx context.Context, pk, partialSK string, v interface{}) error LatestForActor(ctx context.Context, sk string, v interface{}) error AllBySK(ctx context.Context, sk string, v interface{}) error AllByKeys(ctx context.Context, keys []dynamo.Key) ([]map[string]dynamodbtypes.AttributeValue, error) AllKeysByPK(ctx context.Context, pk string) ([]dynamo.Key, error) Put(ctx context.Context, v interface{}) error Create(ctx context.Context, v interface{}) error DeleteKeys(ctx context.Context, keys []dynamo.Key) error DeleteOne(ctx context.Context, pk, sk string) error Update(ctx context.Context, pk, sk string, values map[string]dynamodbtypes.AttributeValue, expression string) error BatchPut(ctx context.Context, items []interface{}) error OneBySK(ctx context.Context, sk string, v interface{}) error OneByUID(ctx context.Context, uid string, v interface{}) error }
type DynamoUpdateClient ¶ added in v0.805.0
type ErrorHandler ¶ added in v0.930.0
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type EventClient ¶
type EventClient interface { SendUidRequested(context.Context, event.UidRequested) error SendApplicationUpdated(context.Context, event.ApplicationUpdated) error SendPreviousApplicationLinked(context.Context, event.PreviousApplicationLinked) error SendReducedFeeRequested(context.Context, event.ReducedFeeRequested) error }
type LpaStoreResolvingService ¶ added in v0.1145.0
type SearchClient ¶ added in v0.1045.0
type SessionStore ¶
type SessionStore interface {
Login(r *http.Request) (*sesh.LoginSession, error)
}
type ShareCodeStoreDynamoClient ¶ added in v0.869.0
type ShareCodeStoreDynamoClient interface {}
type UidClient ¶
type UidClient interface {
CreateCase(context.Context, *uid.CreateCaseRequestBody) (uid.CreateCaseResponse, error)
}
Click to show internal directories.
Click to hide internal directories.