Skip to content

Commit c725c9e

Browse files
committed
[域名服务]实现基本的线路配置
1 parent 12fde21 commit c725c9e

File tree

5 files changed

+1225
-15
lines changed

5 files changed

+1225
-15
lines changed

pkg/dnsconfigs/route_ranges.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2021 Liuxiangchao [email protected]. All rights reserved.
2+
3+
package dnsconfigs
4+
5+
type RouteRangeType = string
6+
7+
const (
8+
RouteRangeTypeIP RouteRangeType = "ipRange"
9+
)
10+
11+
// RouteRangeIPRange IP范围配置
12+
type RouteRangeIPRange struct {
13+
IPFrom string `json:"ipFrom"`
14+
IPTo string `json:"ipTo"`
15+
}

pkg/rpc/pb/model_ns_route.pb.go

Lines changed: 56 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)