github.com/onosproject/onos-api/go@v0.10.32/onos/config/admin/client.go (about) 1 // SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package admin 6 7 import ( 8 "google.golang.org/grpc" 9 ) 10 11 // ConfigAdminClientFactory : Default ConfigAdminClient creation. 12 var ConfigAdminClientFactory = func(cc *grpc.ClientConn) ConfigAdminServiceClient { 13 return NewConfigAdminServiceClient(cc) 14 } 15 16 // CreateConfigAdminServiceClient creates and returns a new config admin client 17 func CreateConfigAdminServiceClient(cc *grpc.ClientConn) ConfigAdminServiceClient { 18 return ConfigAdminClientFactory(cc) 19 }