Files
monibuca/plugin/stress/index.go
2025-06-04 14:13:28 +08:00

21 lines
408 B
Go

package plugin_stress
import (
"m7s.live/v5"
"m7s.live/v5/pkg/util"
"m7s.live/v5/plugin/stress/pb"
)
type StressPlugin struct {
pb.UnimplementedApiServer
m7s.Plugin
pushers util.Collection[string, *m7s.PushJob]
pullers util.Collection[string, *m7s.PullJob]
}
var _ = m7s.InstallPlugin[StressPlugin](&pb.Api_ServiceDesc, pb.RegisterApiHandler)
func (r *StressPlugin) OnInit() error {
return nil
}