Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContainerEngineID defines the default id used to register the // application gin engine instance in the application container. ContainerEngineID = "gapp.engine" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { gapp.Application Engine() Engine Run(addr ...string) error }
Application interface used to define the methods of a servlet application.
func NewApplication ¶
func NewApplication() Application
NewApplication used to instantiate a new rest application.
type Engine ¶
type Engine interface { gin.IRoutes Delims(left, right string) *gin.Engine HandleContext(c *gin.Context) LoadHTMLFiles(files ...string) LoadHTMLGlob(pattern string) NoMethod(handlers ...gin.HandlerFunc) NoRoute(handlers ...gin.HandlerFunc) Routes() (routes gin.RoutesInfo) Run(addr ...string) (err error) RunFd(fd int) (err error) RunListener(listener net.Listener) (err error) RunTLS(addr, certFile, keyFile string) (err error) RunUnix(file string) (err error) SecureJsonPrefix(prefix string) *gin.Engine ServeHTTP(w http.ResponseWriter, req *http.Request) SetFuncMap(funcMap template.FuncMap) SetHTMLTemplate(tpl *template.Template) }
Engine interface for the gin-gonic engine object.
Click to show internal directories.
Click to hide internal directories.