mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-27 01:15:52 +08:00
44eb5d4ed4437028686be94c1efe191731729144
Introduction
Monibuca is a highly scalable high-performance streaming server development framework developed purely for Go
Usage
package main
import (
"context"
"m7s.live/v5"
_ "m7s.live/v5/plugin/debug"
_ "m7s.live/v5/plugin/flv"
_ "m7s.live/v5/plugin/rtmp"
)
func main() {
m7s.Run(context.Background(), "config.yaml")
}
build tags
Build Tag | Description |
---|---|
disable_rm | Disables the memory pool |
sqlite | Enables the sqlite DB |
sqliteCGO | Enables the sqlite cgo version DB |
mysql | Enables the mysql DB |
postgres | Enables the postgres DB |
duckdb | Enables the duckdb DB |
taskpanic | Throws panic, for testing |
More Example
see example directory
Prometheus
scrape_configs:
- job_name: "monibuca"
metrics_path: "/api/metrics"
static_configs:
- targets: ["localhost:8080"]
Create Plugin
see plugin
Languages
Go
61.4%
JavaScript
34%
HTML
1.6%
C
1.5%
Python
0.7%
Other
0.7%