Documentation ¶
Overview ¶
Package cog is responsible for providing an aws cognito client as well as lambda handling front controller pattern for all microservice lambda features that need logging, timeout and panic handling.
Index ¶
- func FailureToGatewayResponse(err error) events.APIGatewayProxyResponse
- func PreSignupLogger(ctx context.Context, l *zap.SugaredLogger, ...) *zap.SugaredLogger
- func SetAPIVersion(ctx context.Context, version string) context.Context
- type HandlerConfig
- type PreSignupHandler
- type PreSignupRunner
- type Success
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailureToGatewayResponse ¶
func FailureToGatewayResponse(err error) events.APIGatewayProxyResponse
func PreSignupLogger ¶
func PreSignupLogger(ctx context.Context, l *zap.SugaredLogger, e events.CognitoEventUserPoolsPreSignup) *zap.SugaredLogger
Types ¶
type HandlerConfig ¶
type HandlerConfig struct {
sls.TimeoutConfig
}
type PreSignupHandler ¶
type PreSignupHandler interface {
Run(ctx context.Context, e events.CognitoEventUserPoolsPreSignup) error
}
type PreSignupRunner ¶
type PreSignupRunner struct {
// contains filtered or unexported fields
}
func (*PreSignupRunner) Handle ¶
func (p *PreSignupRunner) Handle(ctx context.Context, e events.CognitoEventUserPoolsPreSignup) (err error)
Click to show internal directories.
Click to hide internal directories.