handler

package
v0.0.0-...-bef02c6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewServerOptions

type NewServerOptions struct {
	Repository repository.RepositoryInterface
	JwtService middleware.IJwtService
}

type Server

type Server struct {
	Repository repository.RepositoryInterface
	JwtService middleware.IJwtService
}

func NewServer

func NewServer(opts NewServerOptions) *Server

func (*Server) GetUser

func (s *Server) GetUser(ctx echo.Context) error

(GET /v1/users/me)

func (*Server) UpdateUser

func (s *Server) UpdateUser(ctx echo.Context) error

(PATCH /v1/users/me)

func (*Server) UserLogin

func (s *Server) UserLogin(ctx echo.Context) error

(POST /v1/auth/login)

func (*Server) UserRegister

func (s *Server) UserRegister(ctx echo.Context) error

(POST /v1/users)

Directories

Path Synopsis
Package middleware is a generated GoMock package.
Package middleware is a generated GoMock package.

Jump to

Keyboard shortcuts

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