Documentation ¶
Index ¶
- func GoRunTidSearch(logPath string)
- func Init(r router.Router, httpPort int, path BasePath, unilogAddr string, cfg Config)
- func MustCheckBasePath(path BasePath)
- func RegisterRouter(r router.Router, logInfoPath, loginPath, tidSearchPath, token string, ...) error
- type BasePath
- type Config
- type LogPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoRunTidSearch ¶
func GoRunTidSearch(logPath string)
GoRunTidSearch tid搜索引擎服务. 这里一定要传logPath而不是和日志相同的文件句柄*os.File
func Init ¶
Init (high-level) r can user router.NewGin or router.NewServeMux as the router.Router. httpPort is the port of the http server listened. unilogAddr can be empty if only used locally.
func MustCheckBasePath ¶
func MustCheckBasePath(path BasePath)
MustCheckBasePath look at the rule of BasePath.
Types ¶
type BasePath ¶
type BasePath string
BasePath the root path, it should:
1. must not be empty;
2. must begin with /
3. must not end with /
4 must not contain one of the basePathNot
Click to show internal directories.
Click to hide internal directories.