实现路径规则部分功能

This commit is contained in:
GoEdgeLab
2020-09-21 19:52:10 +08:00
parent 5e634e3da4
commit f41d02ac0e
28 changed files with 2767 additions and 1113 deletions

View File

@@ -0,0 +1,14 @@
package serverconfigs
import (
"github.com/iwind/TeaGo/logs"
"testing"
)
func TestHTTPLocationRef(t *testing.T) {
ref := &HTTPLocationRef{LocationId: 1}
logs.PrintAsJSON(ref, t)
ref.Children = append(ref.Children, &HTTPLocationRef{LocationId: 2}, &HTTPLocationRef{LocationId: 3})
logs.PrintAsJSON(ref, t)
}