Documentation ¶
Index ¶
- Constants
- func NewAuthMiddleware(cfg *config.AppConfig, st store.Store) fiber.Handler
- func NewLoggingMiddleware(logger *log.Log) fiber.Handler
- func SetNewSession(c *fiber.Ctx, cfg *config.AppConfig, st store.Store, username string) error
- func StartHTTPServer(lifecycle fx.Lifecycle, server Server, logger *log.Log)
- type Params
- type Server
Constants ¶
View Source
const ( TraceHeaderKey = "x-b3-traceid" UsernameHeaderKey = "x-username" )
View Source
const (
CookieSessionKey = "session"
)
Variables ¶
This section is empty.
Functions ¶
func NewAuthMiddleware ¶
NewAuthMiddleware returns auth middleware
func NewLoggingMiddleware ¶
NewLogger returns request/response logging middleware
func SetNewSession ¶
Types ¶
type Params ¶
type Params struct { fx.In HTTPConfig *config.HTTPConfig AppConfig *config.AppConfig Logger *log.Log Eh errhandler.ErrorHandler Store store.Store }
Click to show internal directories.
Click to hide internal directories.