Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(r *chi.Mux, c CompaniesHandler, mwCompany Middleware, mwPayload Middleware, mwIp Middleware) *server
NewServer creates a new server with the given router and handlers.
Types ¶
type CompaniesHandler ¶
type CompaniesHandler interface { HandleCompanyCreate(http.ResponseWriter, *http.Request) HandleCompanyGetOne(http.ResponseWriter, *http.Request) HandleCompanyGetAll(http.ResponseWriter, *http.Request) HandleCompanyUpdate(http.ResponseWriter, *http.Request) HandleCompanyDelete(http.ResponseWriter, *http.Request) }
CompaniesHandler defines a set of handlers required to be used with the server.
Click to show internal directories.
Click to hide internal directories.