Documentation
¶
Overview ¶
@externalDocs.description OpenAPI @externalDocs.url https://swagger.io/resources/open-api/
Index ¶
- func NewConfig() *configstc.WebAppConfig
- type ApiServer
- func (s *ApiServer) AddFuncMap(funcs ...template.FuncMap)
- func (s *ApiServer) InitRouter()
- func (s *ApiServer) InitRouterForGin(engine *gin.Engine)
- func (s *ApiServer) Name() string
- func (s *ApiServer) SetTemplateParseFunc(f func(r *http.Request) string)
- func (s *ApiServer) Start() error
- func (s *ApiServer) Stop() error
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig() *configstc.WebAppConfig
NewConfig godoc @Summary CONFIG-配置 @Description CONFIG-配置内容 @Tags web @Produce json @Success 200 {array} configstc.WebAppConfig @Router /-web-config [post]
Types ¶
type ApiServer ¶
type ApiServer struct { *apps.ApiServer gin_http.CorsOption // contains filtered or unexported fields }
func NewApiServer ¶
func (*ApiServer) AddFuncMap ¶
func (*ApiServer) InitRouter ¶
func (s *ApiServer) InitRouter()
func (*ApiServer) InitRouterForGin ¶
func (*ApiServer) SetTemplateParseFunc ¶
Click to show internal directories.
Click to hide internal directories.