httpserver

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

README

Http Server

简介

HTTP Server 是 RULEX 的 WEB API 提供者,主要用来支持 Dashboard 以及部分性能监控。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCpuUsage added in v0.6.7

func GetCpuUsage()

Types

type ApiServerPlugin

type ApiServerPlugin struct {
	// contains filtered or unexported fields
}

func NewHttpApiServer

func NewHttpApiServer(ruleEngine typex.RuleX) *ApiServerPlugin

func (*ApiServerPlugin) Init

func (hs *ApiServerPlugin) Init(config *ini.Section) error

func (*ApiServerPlugin) LoadRoute

func (hs *ApiServerPlugin) LoadRoute()

* * 加载路由 *

func (*ApiServerPlugin) PluginMetaInfo

func (hs *ApiServerPlugin) PluginMetaInfo() typex.XPluginMetaInfo

func (*ApiServerPlugin) Service

* * 服务调用接口 *

func (*ApiServerPlugin) Start

func (hs *ApiServerPlugin) Start(r typex.RuleX) error

ApiServerPlugin Start

func (*ApiServerPlugin) Stop

func (hs *ApiServerPlugin) Stop() error

Directories

Path Synopsis
RhinoH3 固件相关操作
RhinoH3 固件相关操作

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL