app

package
v0.0.0-...-897bb11 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None handleOpt = 1 << iota
	RequireSession
)

Variables

This section is empty.

Functions

func App

func App(
	logger *logging.Logger,
	localizer page.Localizer,
	lang localize.Lang,
	tmpls template.Templates,
	sessionStore SessionStore,
	lpaDynamoClient DynamoClient,
	appPublicURL string,
	payClient *pay.Client,
	yotiClient *identity.YotiClient,
	notifyClient *notify.Client,
	addressClient *place.Client,
	rumConfig page.RumConfig,
	staticHash string,
	paths page.AppPaths,
	oneLoginClient *onelogin.Client,
	uidClient *uid.Client,
	oneloginURL string,
	s3Client *s3.Client,
	evidenceBucketName string,
	reducedFeeDynamoClient DynamoClient,
	eventClient *event.Client,
) http.Handler

Types

type DynamoClient

type DynamoClient interface {
	Get(ctx context.Context, pk, sk string, v interface{}) error
	Put(ctx context.Context, v interface{}) error
	GetOneByPartialSk(ctx context.Context, pk, partialSk string, v interface{}) error
	GetAllByGsi(ctx context.Context, gsi, sk string, v interface{}) error
	GetAllByKeys(ctx context.Context, pks []dynamo.Key) ([]map[string]types.AttributeValue, error)
	Create(ctx context.Context, v interface{}) error
}

type EventClient

type EventClient interface {
	Send(context.Context, string, any) error
}

type Logger

type Logger interface {
	Print(v ...interface{})
}

type SessionStore

type SessionStore interface {
	Get(r *http.Request, name string) (*sessions.Session, error)
	New(r *http.Request, name string) (*sessions.Session, error)
	Save(r *http.Request, w http.ResponseWriter, s *sessions.Session) error
}

type UidClient

type UidClient interface {
	CreateCase(context.Context, *uid.CreateCaseRequestBody) (uid.CreateCaseResponse, error)
}

Jump to

Keyboard shortcuts

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