app

package
v0.0.0-...-08c5b1d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFn

type HandlerFn func(w http.ResponseWriter, r *http.Request) error

HandlerFn is a custom handler wrapper function type. It is used to wrap handler function to make it easier handling errors from handler function. Also help handler code to be more readable without to many early return statement. Every handler function should use this function signature.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func InitServer

func InitServer(cfg *config.Config, logger logging.Logger, pgPool *pgxpool.Pool) (*Server, error)

Server Initialization function, also bootstraping dependency

func (*Server) Start

func (s *Server) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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