Documentation ¶ Index ¶ type Handler func NewHandler(userlistDB userlist.DB, productDB productdb.DB, opts ...Option) *Handler func (h *Handler) Serve(ctx context.Context, req *Request) (*Request, error) type Logger type Option func SetLogger(l Logger) Option type Request Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler struct { // contains filtered or unexported fields } func NewHandler ¶ func NewHandler( userlistDB userlist.DB, productDB productdb.DB, opts ...Option, ) *Handler func (*Handler) Serve ¶ func (h *Handler) Serve(ctx context.Context, req *Request) (*Request, error) type Logger ¶ type Logger interface { Signup(user *userlist.User) Info(msg string, email string, appCode string) GetProductError(err error, clientId string, req *Request) } type Option ¶ type Option func(*Handler) func SetLogger ¶ func SetLogger(l Logger) Option type Request ¶ type Request events.CognitoEventUserPoolsPreSignup Source Files ¶ View all Source files handler.go logger.go Click to show internal directories. Click to hide internal directories.