Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// It's inherently an HTTP server under the hood.
*http.Server
// contains filtered or unexported fields
}
Proxy Server
Fundamentally used for a reverse proxy by `dev` command.
func (*Server) AddService ¶
Attaches a service to this server.
type ServerConfig ¶
type ServerConfig struct {
// Base route on which the handle function should listen to.
// If not supplied, "/" is chosen by default.
Handle string
// (Optional) Environment to attach to this server.
Environment *environment.Environment
// Port on which to run the server
Port string
// Server specific logger.
// In nil, then common Nhost logger is used.
Log *logrus.Logger
Mux *http.ServeMux
// (Optional) Do not delete the call logs on server shutdown.
SaveLogs bool
}
Server configuration that the user can decide to load inside the functions server.
Click to show internal directories.
Click to hide internal directories.