handler

package
v0.0.0-...-a3a6de1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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