diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-28 20:52:02 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-28 21:45:56 +0900 |
commit | 18b87c329c12b5a25daddc1ae2b197e71e3de5e2 (patch) | |
tree | e53fac91722feec7f7388a1407576e573bd3997b /pkg | |
parent | f1c55ca0bf844c500a5516ddcd34feb78aed833a (diff) |
server: make NewRoaListFromTableStructList() unexported
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/server/grpc_server.go | 8 | ||||
-rw-r--r-- | pkg/server/server.go | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go index eb17c69f..8b70c36e 100644 --- a/pkg/server/grpc_server.go +++ b/pkg/server/grpc_server.go @@ -110,9 +110,9 @@ func newValidationFromTableStruct(v *table.Validation) *api.RPKIValidation { } return &api.RPKIValidation{ Reason: api.RPKIValidation_Reason(v.Reason.ToInt()), - Matched: NewRoaListFromTableStructList(v.Matched), - UnmatchedAs: NewRoaListFromTableStructList(v.UnmatchedAs), - UnmatchedLength: NewRoaListFromTableStructList(v.UnmatchedLength), + Matched: newRoaListFromTableStructList(v.Matched), + UnmatchedAs: newRoaListFromTableStructList(v.UnmatchedAs), + UnmatchedLength: newRoaListFromTableStructList(v.UnmatchedLength), } } @@ -1668,7 +1668,7 @@ func newPolicyFromApiStruct(a *api.Policy) (*table.Policy, error) { }, nil } -func NewRoaListFromTableStructList(origin []*table.ROA) []*api.Roa { +func newRoaListFromTableStructList(origin []*table.ROA) []*api.Roa { l := make([]*api.Roa, 0) for _, r := range origin { host, portStr, _ := net.SplitHostPort(r.Src) diff --git a/pkg/server/server.go b/pkg/server/server.go index d250b099..23391c19 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -3302,7 +3302,7 @@ func (s *BgpServer) ListRpkiTable(ctx context.Context, r *api.ListRpkiTableReque } roas, err = s.roaManager.GetRoa(family) if err == nil { - l = append(l, NewRoaListFromTableStructList(roas)...) + l = append(l, newRoaListFromTableStructList(roas)...) } return nil }, false) |