Documentation ¶
Overview ¶
Package goexpress provides the actual hook that enables you to start building your application.
The basic Express() functions returns an instance for the express which can be further be used as an express hook.
app.Use(), app.Get(), app.Post(), app.Delete(), app.Push() app.Put() are the top level functions that can be used in the same fashion as the express-js ones are.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExpressInterface ¶ added in v1.0.2
type ExpressInterface interface { Use(interface{}) *express Get(string, router.Middleware) *express Post(string, router.Middleware) *express Put(string, router.Middleware) *express Patch(string, router.Middleware) *express Delete(string, router.Middleware) *express SetProp(string, interface{}) *express GetProp(string, interface{}) interface{} Start(string) *express }
Public Interface to allow access to express struct's member functions
Directories ¶
Path | Synopsis |
---|---|
Cookies Package helps reading and setting the cookie The cookie struct's instance is availaible to both goexpress.Request and goexpress.Response
|
Cookies Package helps reading and setting the cookie The cookie struct's instance is availaible to both goexpress.Request and goexpress.Response |
Header Package, handles the Response & Request Header The package is responsible for setting Response headers and pushing the same on the transport buffer
|
Header Package, handles the Response & Request Header The package is responsible for setting Response headers and pushing the same on the transport buffer |
Request package provides the request structure The package provides access to Headers, Cookies Query Params, Post Body and Upload Files
|
Request package provides the request structure The package provides access to Headers, Cookies Query Params, Post Body and Upload Files |
Response package provides the core functionality of handling the client connection, chunked response and other features
|
Response package provides the core functionality of handling the client connection, chunked response and other features |
Package Router, returns instance for express Router Functions defined here are extended by express.go itself Express Router takes the url regex as similar to the js one Router.Get("/:param") will return the param in Response.Params["param"]
|
Package Router, returns instance for express Router Functions defined here are extended by express.go itself Express Router takes the url regex as similar to the js one Router.Get("/:param") will return the param in Response.Params["param"] |
Click to show internal directories.
Click to hide internal directories.