feat: add cmux

This commit is contained in:
Rogee
2024-12-31 19:23:58 +08:00
parent 64c08249df
commit 498a820a54
4 changed files with 106 additions and 3 deletions

View File

@@ -46,3 +46,7 @@ func (g *Grpc) Serve() error {
return g.Server.Serve(l)
}
func (g *Grpc) ServeWithListener(ln net.Listener) error {
return g.Server.Serve(ln)
}