Documentation ¶
Index ¶
- func GetWebPage(url string) (string, error)
- func IsExist(f string) bool
- func PluginDetailedInfoPage(ctx *fasthttp.RequestCtx)
- func PluginListPage(ctx *fasthttp.RequestCtx)
- func ReadFile(path string) (string, error)
- func RunMiraiApiServer()
- type BasicPluginInfo
- type MiraiApiServer
- type Plugin
- type ResponseInfo
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWebPage ¶
func IsExist ¶
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
func PluginDetailedInfoPage ¶
func PluginDetailedInfoPage(ctx *fasthttp.RequestCtx)
func PluginListPage ¶
func PluginListPage(ctx *fasthttp.RequestCtx)
func RunMiraiApiServer ¶
func RunMiraiApiServer()
Types ¶
type BasicPluginInfo ¶
type MiraiApiServer ¶
type MiraiApiServer struct { ConfigPath string Config map[string]string Logger *logger.MiraiLogger Router *fasthttprouter.Router Service *Service NotFoundPage string //提前写入内存 }
func GetMiraiApiServer ¶
func GetMiraiApiServer() *MiraiApiServer
func (*MiraiApiServer) ConstructPluginPath ¶
func (this *MiraiApiServer) ConstructPluginPath() string
func (*MiraiApiServer) Init ¶
func (this *MiraiApiServer) Init()
type Plugin ¶
type Plugin struct { BasicInfo BasicPluginInfo JsonFile string }
type ResponseInfo ¶
type Service ¶
type Service struct { PluginPathList []string PluginInfoList []Plugin PluginBasicJsonInfo []BasicPluginInfo PluginInfoMap map[string]Plugin // contains filtered or unexported fields }
func GetService ¶
func GetService() *Service
Click to show internal directories.
Click to hide internal directories.