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/server/grpc_server.go | |
parent | f1c55ca0bf844c500a5516ddcd34feb78aed833a (diff) |
server: make NewRoaListFromTableStructList() unexported
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/grpc_server.go')
-rw-r--r-- | pkg/server/grpc_server.go | 8 |
1 files changed, 4 insertions, 4 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) |