gateway

package module
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

网关插件

该插件提供一下功能:

  1. 提供HTTP协议的API接口
  2. 提供控制台UI界面的框架,可以展示其他插件的UI界面
  3. 自身提供一个显示系统实时状态的界面

插件名称

GateWay

配置

目前仅有的配置是监听的端口号

[GateWay]
ListenAddr = ":8081"

使用方法

插件随实例启动而启动,打开浏览器访问配置好的端口即可,例如http://localhost:8081,根据实际情况访问

API

  • /api/sysInfo 获取系统信息,包含引擎版本和实例启动时间
  • /api/summary 获取系统实时状态,包括cpu、内存、网卡流量数据
  • /api/config 获取配置文件
  • /api/plugins 获取所有插件信息
  • /api/listenInfo 收听流的缓冲信息
  • /api/snapshot 获取缓冲快照数据
  • /api/tagRaw 获取音视频Tag的原始二进制数据
  • /api/modifyConfig 修改插件配置

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginInfo

type PluginInfo struct {
	Name      string   //插件名称
	Type      byte     //类型
	Config    string   //插件配置
	UIDir     string   //界面路径
	ReadMe    string   //README.md
	Version   string   //插件版本
	HotConfig []string //热更新配置
}

PluginInfo 插件信息

type SnapShot

type SnapShot struct {
	Type    byte
	Size    int
	Payload []byte
}

Jump to

Keyboard shortcuts

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