Documentation
¶
Index ¶
- func NewServer(conf Config, loadRouters func(router *gin.Engine)) (*http.Server, error)
- func Register(key string, value ICmdWebHandler)
- func RunGin(conf Config, loadRouters func(router *gin.Engine)) error
- func StartGin(conf Config, loadRouters func(router *gin.Engine)) (*http.Server, error)
- type Config
- type ICmdWebHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(key string, value ICmdWebHandler)
* * @Description: reg * @param: key * @param: value * @Author: Iori * @Date: 2022-04-26 17:31:33 *
Types ¶
type ICmdWebHandler ¶
ICmdWsHandler
* @Description:
func GetHandlers ¶
func GetHandlers(key string) (value ICmdWebHandler, ok bool)
* * @Description: get handlers * @param: key * @return: value * @return: ok * @Author: Iori * @Date: 2022-04-26 17:31:21 *
Click to show internal directories.
Click to hide internal directories.