Documentation ¶
Index ¶
- type Server
- func (s *Server) FirebaseAuth(ctx *fiber.Ctx) (uid string, err error)
- func (s *Server) HandleCreateUserMe(ctx *fiber.Ctx) error
- func (s *Server) HandleDeleteUserMe(ctx *fiber.Ctx) error
- func (s *Server) HandleGetUserMe(ctx *fiber.Ctx) error
- func (s *Server) HandleUpdateUserMe(ctx *fiber.Ctx) error
- func (s *Server) Start(bindAddress string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the main server struct.
func New ¶
func New(cfg *config.Config, userService domain.UserService) *Server
New created a new (web) server instance.
func (*Server) FirebaseAuth ¶
FirebaseAuth is a middleware that validates Firebase ID Tokens passed in the Authorization HTTP header.
func (*Server) HandleCreateUserMe ¶
HandleCreateUserMe handles POST /users/@me
func (*Server) HandleDeleteUserMe ¶
HandleDeleteUserMe handles DELETE /users/@me
func (*Server) HandleGetUserMe ¶
HandleGetUserMe handles GET /users/@me
func (*Server) HandleUpdateUserMe ¶
HandleUpdateUserMe handles PATCH /users/@me
Click to show internal directories.
Click to hide internal directories.