Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Dependencies ¶
type Dependencies struct { ContactHandler controller.ContactHandler HandierPing ping.HandierPing Config Config Logger *zap.Logger Conn *pgxpool.Pool }
func Build ¶
func Build() Dependencies
func (Dependencies) CloseDatabase ¶
func (d Dependencies) CloseDatabase()
type Error ¶
type Middleware ¶
type Middleware func(*Server)
func WithErrorHandler ¶
func WithErrorHandler() Middleware
func WithRecover ¶
func WithRecover() Middleware
func WithRequestID ¶
func WithRequestID() Middleware
type Server ¶
type Server struct { Server *echo.Echo // contains filtered or unexported fields }
func NewServer ¶
func NewServer(dependencies Dependencies) *Server
func (*Server) GetDependencies ¶
func (s *Server) GetDependencies() Dependencies
func (*Server) Middlewares ¶
func (s *Server) Middlewares(middlewares ...Middleware)
Middlewares build the middlewares of the server
Click to show internal directories.
Click to hide internal directories.