Documentation ¶
Index ¶
- func ContentTypeJson(next httprouter.Handle) httprouter.Handle
- func NewHTTPRouter(prefix string, isProduction bool, options GoCraftOptions) http.Handler
- func RegisterRoutes(router *httprouter.Router, prefix string, isProduction bool, ...)
- func RegisterRoutesOnGin(router gin.IRoutes, prefix string, isProduction bool, options GoCraftOptions)
- type Context
- type GoCraftOptions
- type MicroScopeViewModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentTypeJson ¶
func ContentTypeJson(next httprouter.Handle) httprouter.Handle
func NewHTTPRouter ¶
func NewHTTPRouter(prefix string, isProduction bool, options GoCraftOptions) http.Handler
func RegisterRoutes ¶ added in v0.0.2
func RegisterRoutes(router *httprouter.Router, prefix string, isProduction bool, options GoCraftOptions)
func RegisterRoutesOnGin ¶ added in v0.0.2
func RegisterRoutesOnGin(router gin.IRoutes, prefix string, isProduction bool, options GoCraftOptions)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewGoCraftApi ¶
func NewGoCraftApi(options GoCraftOptions) *Context
NewServer creates and returns a new server. The 'namespace' param is the redis namespace to use. The hostPort param is the address to bind on to expose the API.
type GoCraftOptions ¶
Click to show internal directories.
Click to hide internal directories.