func Service() Interface {
	if service == nil {
		panic("OrderService is not registered")
	}
	return service
}
Service returns the registered service
package order
import (
	"github.com/digota/digota/order/orderpb"
	"google.golang.org/grpc"
	"regexp"
)
const baseMethod = "^(.orderpb.OrderService/)"
var service Interface
type Interface interface {
	orderpb.OrderServiceServer
}
func RegisterService(p Interface) {
	if service != nil {
		panic("OrderService is already registered")
	}
	service = p
}
func RegisterOrderServer(server *grpc.Server) {
	orderpb.RegisterOrderServiceServer(server, Service())
}