Documentation ¶
Overview ¶
Author: Daniel TAN Date: 2021-10-02 22:31:49 LastEditors: Daniel TAN LastEditTime: 2021-10-03 23:02:06 FilePath: /trinity-micro/container.go Description:
Author: Daniel TAN Date: 2021-10-02 00:36:09 LastEditors: Daniel TAN LastEditTime: 2021-10-04 00:16:28 FilePath: /trinity-micro/di_router.go Description:
Author: Daniel TAN Date: 2021-10-02 22:54:19 LastEditors: Daniel TAN LastEditTime: 2021-10-02 22:54:21 FilePath: /trinity-micro/event.go Description:
Author: Daniel TAN Date: 2021-10-02 22:31:03 LastEditors: Daniel TAN LastEditTime: 2021-10-02 22:46:53 FilePath: /trinity-micro/router.go Description:
Author: Daniel TAN Date: 2021-09-06 00:13:18 LastEditors: Daniel TAN LastEditTime: 2021-10-04 01:37:32 FilePath: /trinity-micro/trinity.go Description:
Index ¶
- func DIHandler(container *container.Container, instanceName string, funcName string, ...) func(w http.ResponseWriter, r *http.Request)
- func DIRouter(r mux, container *container.Container)
- func InitInstance(container *container.Container)
- func RegisterController(rootPath string, instanceName string, requestMaps ...RequestMap)
- func RegisterInstance(instanceName string, instancePool *sync.Pool)
- func RouterSelfCheck(container *container.Container)
- type Config
- type RequestMap
- type Trinity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DIHandler ¶
func DIHandler(container *container.Container, instanceName string, funcName string, isRaw bool) func(w http.ResponseWriter, r *http.Request)
multi instance di handler
func InitInstance ¶
func RegisterController ¶
func RegisterController(rootPath string, instanceName string, requestMaps ...RequestMap)
func RegisterInstance ¶
func RouterSelfCheck ¶
Types ¶
type Config ¶
type Config struct { Mux mux Logger logrus.FieldLogger }
type RequestMap ¶
type RequestMap struct {
// contains filtered or unexported fields
}
func NewRawRequestMapping ¶
func NewRequestMapping ¶
type Trinity ¶
type Trinity struct { logrus.FieldLogger // contains filtered or unexported fields }
Directories ¶
Path | Synopsis |
---|---|
core
|
|
httpx
* @Author: Daniel TAN * @Description: * @Date: 2021-08-06 11:05:44 * @LastEditTime: 2021-08-06 11:06:21 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/httpx/http_header_consts.go * @Author: Daniel TAN * @Description: * @Date: 2021-08-06 09:15:58 * @LastEditTime: 2021-09-07 10:46:38 * @LastEditors: Please set LastEditors * @FilePath: /fr-price-common-pkg/core/httpx/parse.go Author: Daniel TAN Date: 2021-09-05 10:24:33 LastEditors: Daniel TAN LastEditTime: 2021-10-03 14:56:13 FilePath: /trinity-micro/core/httpx/response.go Description:
|
* @Author: Daniel TAN * @Description: * @Date: 2021-08-06 11:05:44 * @LastEditTime: 2021-08-06 11:06:21 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/httpx/http_header_consts.go * @Author: Daniel TAN * @Description: * @Date: 2021-08-06 09:15:58 * @LastEditTime: 2021-09-07 10:46:38 * @LastEditors: Please set LastEditors * @FilePath: /fr-price-common-pkg/core/httpx/parse.go Author: Daniel TAN Date: 2021-09-05 10:24:33 LastEditors: Daniel TAN LastEditTime: 2021-10-03 14:56:13 FilePath: /trinity-micro/core/httpx/response.go Description: |
utils
* @Author: Daniel TAN * @Description: * @Date: 2021-08-24 11:37:54 * @LastEditTime: 2021-08-24 12:56:19 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/md5.go * @Author: Daniel TAN * @Description: * @Date: 2021-08-06 10:11:31 * @LastEditTime: 2021-08-26 10:53:30 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/string_converter.go * @Author: Daniel TAN * @Description: * @Date: 2021-08-18 09:27:53 * @LastEditTime: 2021-08-18 09:28:00 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/type_converter.go
|
* @Author: Daniel TAN * @Description: * @Date: 2021-08-24 11:37:54 * @LastEditTime: 2021-08-24 12:56:19 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/md5.go * @Author: Daniel TAN * @Description: * @Date: 2021-08-06 10:11:31 * @LastEditTime: 2021-08-26 10:53:30 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/string_converter.go * @Author: Daniel TAN * @Description: * @Date: 2021-08-18 09:27:53 * @LastEditTime: 2021-08-18 09:28:00 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/type_converter.go |
example
|
|