接口不使用“I”开头, 实现类不使用"impl"结尾

This commit is contained in:
yangjiechina
2024-06-06 19:27:56 +08:00
parent 39c787fbee
commit 2ae2622945
37 changed files with 458 additions and 481 deletions

View File

@@ -8,7 +8,7 @@ import (
"testing"
)
func CreateTransStream(source stream.ISource, protocol stream.Protocol, streams []utils.AVStream) stream.ITransStream {
func CreateTransStream(source stream.Source, protocol stream.Protocol, streams []utils.AVStream) stream.TransStream {
if stream.ProtocolRtmp == protocol {
return NewTransStream(librtmp.ChunkSize)
}
@@ -23,7 +23,7 @@ func init() {
func TestServer(t *testing.T) {
stream.AppConfig.GOPCache = true
stream.AppConfig.MergeWriteLatency = 350
impl := serverImpl{}
impl := server{}
addr := "0.0.0.0:1935"
tcpAddr, err := net.ResolveTCPAddr("tcp", addr)
if err != nil {