func (tlsca *TLSCA) startTLSCAA(opts []grpc.ServerOption) { var err error tlsca.socka, err = net.Listen("tcp", viper.GetString("ports.tlscaA")) if err != nil { Panic.Panicln(err) } tlsca.srva = grpc.NewServer(opts...) pb.RegisterTLSCAAServer(tlsca.srva, &TLSCAA{tlsca}) tlsca.srva.Serve(tlsca.socka) }
func (tlsca *TLSCA) startTLSCAA(srv *grpc.Server) { pb.RegisterTLSCAAServer(srv, &TLSCAA{tlsca}) }