func (s *Server) AddService(r Service) {
	s.services = append(s.services, r)
}
AddService adds a Service to the server to be registered on Serve.
package northbound
import (
	"crypto/tls"
	"crypto/x509"
	"fmt"
	"github.com/onosproject/onos-config/pkg/certs"
	"google.golang.org/grpc/credentials"
	"io/ioutil"
	log "k8s.io/klog"
	"net"
	"google.golang.org/grpc"
)
type Service interface {
	Register(s *grpc.Server)
}
type Server struct {
	cfg      *ServerConfig
	services []Service
}
type ServerConfig struct {
	CaPath   *string
	KeyPath  *string
	CertPath *string
	Port     int16
	Insecure bool
}
func NewServer(cfg *ServerConfig) *Server {
	return &Server{
		services: []Service{},
		cfg:      cfg,
	}
}
func NewServerConfig(caPath string, keyPath string, certPath string) *ServerConfig {
	return &ServerConfig{
		Port:     5150,
		Insecure: true,
		CaPath:   &caPath,
		KeyPath:  &keyPath,
		CertPath: &certPath,
	}
}